Correcciones en campo mapa
This commit is contained in:
parent
941728db85
commit
64995ef08b
@ -15444,7 +15444,7 @@ $multiple=mysqli_result($sql,0,"multiple");
|
||||
}
|
||||
$exif="&exif";
|
||||
}
|
||||
if($zoom =="") { $zoom="20";}
|
||||
if($zoom =="") { $zoom="5";}
|
||||
$render .= "
|
||||
<div style='position:relative'>
|
||||
<div class='input-group'>
|
||||
|
@ -82,10 +82,10 @@ function loadArticle(pageNumber,id,plantilla,registros,scroll) {
|
||||
}
|
||||
|
||||
|
||||
var coordenadas = "./milfs/mapa.php?lon="+lat+"&lat="+long+"&zoom=18&id="+campo_mapa+"[0]";
|
||||
var coordenadas = "./milfs/mapa.php?lon="+lat+"&lat="+long+"&zoom=18&id="+campo_mapa+"[0]&exif";
|
||||
// alert(long+' '+lat+' '+altura );
|
||||
document.getElementById('mapita').contentWindow.document.location.href=coordenadas;
|
||||
var minimapa = campo+"//<img class='lazy img-round img img-responsive' src ='http://staticmap.openstreetmap.de/staticmap.php?center="+lat+","+long+"&zoom=12&size=250x100&maptype=mapnik&markers="+lat+","+long+",red-pushpin' >";
|
||||
var minimapa = campo+"//<img class='lazy img-round img img-responsive' src ='https://staticmap.openstreetmap.co/staticmap.php?center="+lat+","+long+"&zoom=12&size=250x100&maptype=mapnik&markers="+lat+","+long+",red-pushpin' >";
|
||||
document.getElementById("geo_"+campo).innerHTML = minimapa;
|
||||
|
||||
} else {
|
||||
|
4
mapa.php
4
mapa.php
@ -48,7 +48,7 @@ var mapa = window.parent.document.getElementById('<?php echo $_REQUEST[id]?>');
|
||||
function ondragend() {
|
||||
var m = marker.getLatLng();
|
||||
var z = map.getZoom();
|
||||
mapa.value= m.lng+' '+m.lat+' '+z;
|
||||
mapa.value= m.lng+' '+m.lat+' '+m.z;
|
||||
}
|
||||
|
||||
}
|
||||
@ -67,7 +67,7 @@ function onLocationError(e) {
|
||||
function ondragend() {
|
||||
var m = marker.getLatLng();
|
||||
var z = map.getZoom();
|
||||
mapa.value= m.lng+' '+m.lat+' '+m.z;
|
||||
mapa.value= m.lng+' '+m.lat+' '+z;
|
||||
}
|
||||
}
|
||||
map.on('locationerror', onLocationError);
|
||||
|
Loading…
Reference in New Issue
Block a user