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') ; -