correccion bug edicion mapa

This commit is contained in:
fredyrivera 2017-09-26 10:06:06 -05:00
parent 227f96169e
commit 24b234f746
2 changed files with 7 additions and 5 deletions

View File

@ -12344,6 +12344,7 @@ $resultado = "
return $resultado;
}
function formulario_campos_render($id_campo,$id_form,$control,$item,$id_dato){
$cols ="";
$style="";
@ -12422,6 +12423,7 @@ if($control !="") {
$zoom = $campos[2];
}
$exif="&exif";
}
$render .= "
@ -12436,7 +12438,7 @@ if($control !="") {
<div id='muestra_geocoder' style='position:absolute; max-height: 300px; width: 90%; overflow-y:auto; '></div>
</div>
<iframe id='mapita' src='$_SESSION[site]milfs/mapa.php?lat=$lat&lon=$lon&zoom=$zoom&id=".$id_campo."[".$item."]' width='100%' height='300px'></iframe>
<iframe id='mapita' src='$_SESSION[site]milfs/mapa.php?lat=$lat&lon=$lon&zoom=$zoom&id=".$id_campo."[".$item."]$exif' width='100%' height='300px'></iframe>
<input value='$value' type='text' id='".$id_campo."[".$item."]' name='".$id_campo."[".$item."]' class='form-control' placeholder='coordenadas' readonly >
";

View File

@ -18,9 +18,9 @@
<div id='map'></div>
<?php
if ($_REQUEST[lat] !='') {$lat=$_REQUEST[lat];}else {$lat= "-72";}
if ($_REQUEST[lon] !='') {$lon=$_REQUEST[lon];}else {$lon= "4";}
if ($_REQUEST[zoom] !='') {$zoom=$_REQUEST[zoom];}else {$zoom= "5";}
if ($_REQUEST['lat'] !='') {$lat=$_REQUEST['lat'];}else {$lat= "-72";}
if ($_REQUEST['lon'] !='') {$lon=$_REQUEST['lon'];}else {$lon= "4";}
if ($_REQUEST['zoom'] !='') {$zoom=$_REQUEST['zoom'];}else {$zoom= "5";}
?>
<script>