From 737a92d9f194d290af9a706c8991747a357909bc Mon Sep 17 00:00:00 2001 From: julianalytica Date: Sat, 24 Jun 2017 17:04:40 -0500 Subject: [PATCH] algo con mapero --- mapero.php | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 78 insertions(+), 5 deletions(-) diff --git a/mapero.php b/mapero.php index a905bc1..9d61852 100644 --- a/mapero.php +++ b/mapero.php @@ -56,7 +56,56 @@ $plantilla ="mapa"; + + + $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; + +?>