forked from qwerty/tupali
correccion en georeferencia de imagen
This commit is contained in:
parent
5e97cd6c60
commit
0308c25e1e
@ -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&exif";
|
||||
$resultado = "../mapa.php?lon=$gps_latitude&lat=$gps_longitude&zoom=18&exif=$name";
|
||||
}else{$resultado ="";}
|
||||
//$resultado = "$gps_longitude $gps_latitude";
|
||||
|
||||
|
@ -45,6 +45,11 @@ var mapa = window.parent.document.getElementById('<?php echo $_REQUEST[id]?>');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
map.on('locationfound', onLocationFound);
|
||||
|
||||
<?php } ?>
|
||||
function onLocationError(e) {
|
||||
//alert(e.message);
|
||||
var marker = L.marker([<?php echo $lon ?>,<?php echo $lat ?>],{draggable: true}).addTo(map);
|
||||
@ -57,10 +62,7 @@ function onLocationError(e) {
|
||||
mapa.value= m.lng+' '+m.lat+' '+z;
|
||||
}
|
||||
}
|
||||
|
||||
map.on('locationfound', onLocationFound);
|
||||
map.on('locationerror', onLocationError);
|
||||
<?php } ?>
|
||||
map.locate({setView: true, maxZoom: 16});
|
||||
//var lat = window.parent.document.getElementById('lat');
|
||||
//var lng = window.parent.document.getElementById('lon');
|
||||
|
Loading…
Reference in New Issue
Block a user