{"id":149,"date":"2025-03-17T15:30:06","date_gmt":"2025-03-17T15:30:06","guid":{"rendered":"https:\/\/bienve.com\/barcelonadecerca\/?page_id=149"},"modified":"2026-03-16T11:58:05","modified_gmt":"2026-03-16T11:58:05","slug":"linea-y-marcador","status":"publish","type":"page","link":"https:\/\/bienve.com\/barcelonadecerca\/linea-y-marcador\/","title":{"rendered":"linea y marcador"},"content":{"rendered":"<div class=\"leaflet-map WPLeafletMap\" style=\"height:50vh; width:100%;\"><\/div><script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletMapShortcode() {\/*<script>*\/\nvar baseUrl = atob('aHR0cHM6Ly90aWxlLm9wZW5zdHJlZXRtYXAub3JnL3t6fS97eH0ve3l9LnBuZw==');\nvar base = (!baseUrl && window.MQ) ?\n    window.MQ.mapLayer() : L.tileLayer(baseUrl,\n        L.Util.extend({}, {\n            detectRetina: 0,\n        },\n        {\"subdomains\":\"abc\",\"noWrap\":false,\"maxZoom\":19}        )\n    );\n    var options = L.Util.extend({}, {\n        layers: [base],\n        attributionControl: false\n    },\n    {\"zoomControl\":true,\"scrollWheelZoom\":true,\"doubleClickZoom\":false,\"fitBounds\":false,\"minZoom\":0,\"maxZoom\":19,\"maxBounds\":null,\"attribution\":\"<a href=\\\"http:\\\/\\\/leafletjs.com\\\" title=\\\"Una biblioteca JS para mapas interactivos\\\">Leaflet<\\\/a>; \\u00a9 <a href=\\\"http:\\\/\\\/www.openstreetmap.org\\\/copyright\\\">OpenStreetMap<\\\/a> colaboradores\"},\n    {});\nwindow.WPLeafletMapPlugin.createMap(options).setView([41.4036,2.1744],12);});<\/script>\n<script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletMarkerShortcode() {\/*<script>*\/\nvar map = window.WPLeafletMapPlugin.getCurrentMap();\nvar group = window.WPLeafletMapPlugin.getCurrentGroup();\nvar marker_options = window.WPLeafletMapPlugin.getIconOptions({\"title\":\"La Clota - Vall d\\u2019Hebron - El Carmel - Horta, Barcelona 2020\"});\nvar marker = L.marker(\n    [41.42595,2.149533],\n    marker_options\n);\nvar is_image = map.is_image_map;\nif (marker_options.draggable) {\n    marker.on('dragend', function () {\n        var latlng = this.getLatLng();\n        var lat = latlng.lat;\n        var lng = latlng.lng;\n        if (is_image) {\n            console.log('leaflet-marker y=' + lat + ' x=' + lng);\n        } else {\n            console.log('leaflet-marker lat=' + lat + ' lng=' + lng);\n        }\n    });\n}\nmarker.addTo( group );\nmarker.bindPopup(window.WPLeafletMapPlugin.unescape('la-campa-de-la-vall-d-hebron\/'));window.WPLeafletMapPlugin.markers.push( marker );\n        });<\/script>\n<script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletMarkerShortcode() {\/*<script>*\/\nvar map = window.WPLeafletMapPlugin.getCurrentMap();\nvar group = window.WPLeafletMapPlugin.getCurrentGroup();\nvar marker_options = window.WPLeafletMapPlugin.getIconOptions({\"title\":\"La Campa de la Vall d\\u2019Hebron\"});\nvar marker = L.marker(\n    [41.4258453,2.147295671],\n    marker_options\n);\nvar is_image = map.is_image_map;\nif (marker_options.draggable) {\n    marker.on('dragend', function () {\n        var latlng = this.getLatLng();\n        var lat = latlng.lat;\n        var lng = latlng.lng;\n        if (is_image) {\n            console.log('leaflet-marker y=' + lat + ' x=' + lng);\n        } else {\n            console.log('leaflet-marker lat=' + lat + ' lng=' + lng);\n        }\n    });\n}\nmarker.addTo( group );\nmarker.bindPopup(window.WPLeafletMapPlugin.unescape('la-clota-vall-debron-el-carmel\/'));window.WPLeafletMapPlugin.markers.push( marker );\n        });<\/script>\n<script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletMarkerShortcode() {\/*<script>*\/\nvar map = window.WPLeafletMapPlugin.getCurrentMap();\nvar group = window.WPLeafletMapPlugin.getCurrentGroup();\nvar marker_options = window.WPLeafletMapPlugin.getIconOptions({\"title\":\"Passatge d\\u2019Antoni Gassol\"});\nvar marker = L.marker(\n    [41.4129,2.19587],\n    marker_options\n);\nvar is_image = map.is_image_map;\nif (marker_options.draggable) {\n    marker.on('dragend', function () {\n        var latlng = this.getLatLng();\n        var lat = latlng.lat;\n        var lng = latlng.lng;\n        if (is_image) {\n            console.log('leaflet-marker y=' + lat + ' x=' + lng);\n        } else {\n            console.log('leaflet-marker lat=' + lat + ' lng=' + lng);\n        }\n    });\n}\nmarker.addTo( group );\nmarker.bindPopup(window.WPLeafletMapPlugin.unescape('passatge-d-antoni-gassol\/'));window.WPLeafletMapPlugin.markers.push( marker );\n        });<\/script>\n<p>&nbsp;<\/p>\n<script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletMarkerShortcode() {\/*<script>*\/\nvar map = window.WPLeafletMapPlugin.getCurrentMap();\nvar group = window.WPLeafletMapPlugin.getCurrentGroup();\nvar marker_options = window.WPLeafletMapPlugin.getIconOptions({\"title\":\"Carrer Calder\\u00f3n de la Barca\"});\nvar marker = L.marker(\n    [41.4212869305,2.1558580229832],\n    marker_options\n);\nvar is_image = map.is_image_map;\nif (marker_options.draggable) {\n    marker.on('dragend', function () {\n        var latlng = this.getLatLng();\n        var lat = latlng.lat;\n        var lng = latlng.lng;\n        if (is_image) {\n            console.log('leaflet-marker y=' + lat + ' x=' + lng);\n        } else {\n            console.log('leaflet-marker lat=' + lat + ' lng=' + lng);\n        }\n    });\n}\nmarker.addTo( group );\nmarker.bindPopup(window.WPLeafletMapPlugin.unescape('carrer-calderon-de-la-barca\/'));window.WPLeafletMapPlugin.markers.push( marker );\n        });<\/script>\n<script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletLineShortcode() {\/*<script>*\/\nvar previous_map = window.WPLeafletMapPlugin.getCurrentMap();\nvar group = window.WPLeafletMapPlugin.getCurrentGroup();\nvar shape = L.polyline([[41.4221336075306538759832619689404964447021484375,2.1554515496841535338035100721754133701324462890625],[41.4234083091464668768821866251528263092041015625,2.15803907502707748022885425598360598087310791015625]], {\"color\":\"blue\",\"weight\":4,\"className\":\"nombre-tecnico\"});\nvar fitbounds = 0;\nshape.addTo( group );\nif (fitbounds) {\n    \/\/ zoom the map to the shape\n    previous_map.fitBounds( shape.getBounds() );\n}\nshape.bindPopup(window.WPLeafletMapPlugin.unescape('carrer-dels-agudells\/||Carrer dels Agudels'));window.WPLeafletMapPlugin.lines.push( shape );});<\/script>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function () {\n    var map = window.WPLeafletMapPlugin.getCurrentMap();\n    if (WPLeafletMapPlugin.markers.length > 0) {\n        WPLeafletMapPlugin.markers.forEach(marker => {\n            if (marker.getPopup()) {\n                var url = marker.getPopup().getContent();\n                marker.unbindPopup(); \/\/ Evita que la URL se muestre en un popup\n                marker.on(\"click\", function () {\n                    window.location.href = url;\n                });\n            }\n        });\n    }\n});\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-full.php","meta":{"footnotes":""},"class_list":["post-149","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/bienve.com\/barcelonadecerca\/wp-json\/wp\/v2\/pages\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bienve.com\/barcelonadecerca\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bienve.com\/barcelonadecerca\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bienve.com\/barcelonadecerca\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bienve.com\/barcelonadecerca\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":53,"href":"https:\/\/bienve.com\/barcelonadecerca\/wp-json\/wp\/v2\/pages\/149\/revisions"}],"predecessor-version":[{"id":334,"href":"https:\/\/bienve.com\/barcelonadecerca\/wp-json\/wp\/v2\/pages\/149\/revisions\/334"}],"wp:attachment":[{"href":"https:\/\/bienve.com\/barcelonadecerca\/wp-json\/wp\/v2\/media?parent=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}