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; return $resultado;
} }
function formulario_campos_render($id_campo,$id_form,$control,$item,$id_dato){ function formulario_campos_render($id_campo,$id_form,$control,$item,$id_dato){
$cols =""; $cols ="";
$style=""; $style="";
@ -12420,8 +12421,9 @@ if($control !="") {
$lat = $campos[0]; $lat = $campos[0];
$lon = $campos[1]; $lon = $campos[1];
$zoom = $campos[2]; $zoom = $campos[2];
} }
$exif="&exif";
} }
$render .= " $render .= "
@ -12436,7 +12438,7 @@ if($control !="") {
<div id='muestra_geocoder' style='position:absolute; max-height: 300px; width: 90%; overflow-y:auto; '></div> <div id='muestra_geocoder' style='position:absolute; max-height: 300px; width: 90%; overflow-y:auto; '></div>
</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 > <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> <div id='map'></div>
<?php <?php
if ($_REQUEST[lat] !='') {$lat=$_REQUEST[lat];}else {$lat= "-72";} if ($_REQUEST['lat'] !='') {$lat=$_REQUEST['lat'];}else {$lat= "-72";}
if ($_REQUEST[lon] !='') {$lon=$_REQUEST[lon];}else {$lon= "4";} if ($_REQUEST['lon'] !='') {$lon=$_REQUEST['lon'];}else {$lon= "4";}
if ($_REQUEST[zoom] !='') {$zoom=$_REQUEST[zoom];}else {$zoom= "5";} if ($_REQUEST['zoom'] !='') {$zoom=$_REQUEST['zoom'];}else {$zoom= "5";}
?> ?>
<script> <script>