diff --git a/labmapero.php b/labmapero.php index 570cf18..dc35c35 100644 --- a/labmapero.php +++ b/labmapero.php @@ -29,7 +29,13 @@ $background_imagen = buscar_imagen("$_REQUEST[id]","","","$id_empresa"); $plantilla ="mapa"; $categorias = lista_categorias($_REQUEST['id'],'','mapa') ; +$proveedor_mapa = remplacetas('form_parametrizacion','campo',$_REQUEST['id'],'descripcion'," tabla='form_id' and opcion = 'proveedor_mapa'") ;; +if($proveedor_mapa[0] !=""){ +$proveedor ="'$proveedor_mapa[0]'"; +}else{ +$proveedor = "'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'"; +} $buscador ="
@@ -218,7 +224,10 @@ $ids = json_decode($otro_json[0]); // standard leaflet map setup ?? var map = L.map('map'); // map.setView([51.2, 7], 9); - L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + + // L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + //L.tileLayer.provider('Stamen.Watercolor').addTo(map); + L.tileLayer(, { maxZoom: 19, attribution: "Map data © OpenStreetMap contributors Powered by Tupale.co" }).addTo(map); diff --git a/mapero.php b/mapero.php index 570cf18..dc35c35 100644 --- a/mapero.php +++ b/mapero.php @@ -29,7 +29,13 @@ $background_imagen = buscar_imagen("$_REQUEST[id]","","","$id_empresa"); $plantilla ="mapa"; $categorias = lista_categorias($_REQUEST['id'],'','mapa') ; +$proveedor_mapa = remplacetas('form_parametrizacion','campo',$_REQUEST['id'],'descripcion'," tabla='form_id' and opcion = 'proveedor_mapa'") ;; +if($proveedor_mapa[0] !=""){ +$proveedor ="'$proveedor_mapa[0]'"; +}else{ +$proveedor = "'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'"; +} $buscador =" @@ -218,7 +224,10 @@ $ids = json_decode($otro_json[0]); // standard leaflet map setup ?? var map = L.map('map'); // map.setView([51.2, 7], 9); - L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + + // L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + //L.tileLayer.provider('Stamen.Watercolor').addTo(map); + L.tileLayer(, { maxZoom: 19, attribution: "Map data © OpenStreetMap contributors Powered by Tupale.co" }).addTo(map);