diff --git a/milfs/includes/upload.php b/milfs/includes/upload.php index d8fd717..f01c172 100755 --- a/milfs/includes/upload.php +++ b/milfs/includes/upload.php @@ -112,7 +112,7 @@ if ( !empty($exif['GPSLongitude']) && !empty($exif['GPSLatitude']) ) { if ( $exif['GPSLatitudeRef'] == 'S') $gps_latitude = -$gps_latitude; if($gps_latitude !='') { - $resultado = "../mapa.php?lon=$gps_latitude&lat=$gps_longitude&zoom=18"; + $resultado = "../mapa.php?lon=$gps_latitude&lat=$gps_longitude&zoom=18&exif"; }else{$resultado ="";} //$resultado = "$gps_longitude $gps_latitude"; diff --git a/milfs/mapa.php b/milfs/mapa.php index 285c0f8..87dbbc6 100755 --- a/milfs/mapa.php +++ b/milfs/mapa.php @@ -27,6 +27,8 @@ var map = L.map('map') .setView([, ], ); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map); + function onLocationFound(e) { var radius = e.accuracy / 2; var marker = L.marker(e.latlng,{draggable: true}).addTo(map) @@ -58,7 +60,7 @@ function onLocationError(e) { map.on('locationfound', onLocationFound); map.on('locationerror', onLocationError); - + map.locate({setView: true, maxZoom: 16}); //var lat = window.parent.document.getElementById('lat'); //var lng = window.parent.document.getElementById('lon');