1
0
Fork 0

Correcciones en campo mapa

This commit is contained in:
humano 2018-10-09 11:47:05 -05:00
parent 941728db85
commit 64995ef08b
3 changed files with 5 additions and 5 deletions

View File

@ -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'>

View File

@ -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 {

View File

@ -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);