From 83f69e2df9762e3504f1df33dc7ba3fafdfb9c3d Mon Sep 17 00:00:00 2001 From: humano Date: Mon, 29 Jul 2019 10:57:49 -0500 Subject: [PATCH] prueba de concepto crear circuitos --- circuitos.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++- milfs | 2 +- 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/circuitos.php b/circuitos.php index bd0f6a1..f728a0c 100644 --- a/circuitos.php +++ b/circuitos.php @@ -29,6 +29,7 @@ $background_imagen = buscar_imagen("$_REQUEST[id]","","","$id_empresa"); $plantilla ="mapa"; $categorias = lista_categorias($_REQUEST['id'],'','mapa') ; ?> + @@ -70,6 +71,55 @@ $categorias = lista_categorias($_REQUEST['id'],'','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: [100, 100], + 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 "; + } + } + + echo $li; + +?> + + @@ -115,7 +165,9 @@ $categorias = lista_categorias($_REQUEST['id'],'','mapa') ; -

+
+ +
diff --git a/milfs b/milfs index 9a89a92..ea815bc 160000 --- a/milfs +++ b/milfs @@ -1 +1 @@ -Subproject commit 9a89a921e03bca67d97921b5e36fbac655a3e678 +Subproject commit ea815bc5053485154cf336a2da6ff488d105a310