From 692bfe61b156f051ebfbbadeef4c06eff8eb62cb Mon Sep 17 00:00:00 2001 From: kleper Date: Sat, 7 Oct 2017 08:59:25 -0500 Subject: [PATCH] Cambio de nombre a Mapero.php por maperodev.php - temas de compatibilidad --- maperodev.php | 416 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 416 insertions(+) create mode 100644 maperodev.php diff --git a/maperodev.php b/maperodev.php new file mode 100644 index 0000000..3c91934 --- /dev/null +++ b/maperodev.php @@ -0,0 +1,416 @@ +processRequests(); +//if($_REQUEST[id2] =='') {$agregar= $_REQUEST[id];}else {$agregar = $_REQUEST[id2];} +if(isset($_REQUEST[categoria]) AND isset($_REQUEST[buscar])) { +$_REQUEST[buscar] = "$_REQUEST[categoria]:$_REQUEST[buscar]"; + +} +$formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre') ; +$formulario_descripcion = remplacetas('form_id','id',$_REQUEST[id],'descripcion') ; +$agregar_nombre = remplacetas('form_id','id',$agregar,'nombre') ; +$id_empresa = remplacetas('form_id','id',$_REQUEST[id],'id_empresa') ; +$logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ; +$razon_social = remplacetas('empresa','id',"$id_empresa[0]",'razon_social','') ; +$campos_formulario = input_campos("$_REQUEST[id]","categoria"); +$plantilla ="mapa"; +?> + + + + <?php echo $formulario_nombre[0] ?> MILFS + + + + + + printJavascript("milfs/xajax/"); ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + $valor) { + if($valor !=""){ + + + $obj=file_get_contents("$valor[0]"); + $li .=""; + $layer .= " + var geojsonAux_$clave = L.geoJson(geojsonAuxiliar_$clave, { + + pointToLayer: function(feature, latlng) { + var smallIcon = new L.Icon({ + iconSize: [60, 60], + iconAnchor: [13, 27], + popupAnchor: [1, -24], + iconUrl: feature.properties.icon.iconUrl + /*iconUrl: 'https://tupale.co/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png'*/ + + }); + return L.marker(latlng, {icon: smallIcon}); + }, + + onEachFeature: function(feature, layer) { + var popupText = feature.properties.description + + + layer.bindPopup(popupText); } + }); + + + "; + $add_layer .= "markers.addLayer(geojsonAux_$clave);"; + $capas_nombre .="geojsonAux_$clave,"; + $capas .= "{ + '$clave': geojsonAux_$clave + };"; + $overlays =" + var overlays = $capas "; + } + } +//$obj=file_get_contents("$otro_json[0]"); +//echo ""; + echo $li; + +?> + + + $css_adicional[0] + + "; + } + else { + $css_adicional =""; + } + echo $css_adicional; ?> + + + + + + + + + +
+ + +
+ + $categorias +
+"; +$leyenda ="
Cerrar $categorias
"; + + + }else{ + + } + //echo $pie; + ?> + + + + +