forked from qwerty/tupali
correccion en georeferencia de imagen
This commit is contained in:
parent
19df1c85e6
commit
5e97cd6c60
@ -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";
|
||||
|
||||
|
@ -27,6 +27,8 @@
|
||||
var map = L.map('map')
|
||||
.setView([<?php echo $lon ?>, <?php echo $lat ?>], <?php echo $zoom ?>);
|
||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
|
||||
<?php
|
||||
if(!isset($_REQUEST['exif'])) { ?>
|
||||
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);
|
||||
|
||||
<?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