{"id":457,"date":"2024-04-29T13:07:19","date_gmt":"2024-04-29T13:07:19","guid":{"rendered":"https:\/\/projetoentreserras.com\/en\/?page_id=457"},"modified":"2026-03-20T18:41:58","modified_gmt":"2026-03-20T18:41:58","slug":"mapa","status":"publish","type":"page","link":"https:\/\/projetoentreserras.com\/en\/mapa\/","title":{"rendered":"Map"},"content":{"rendered":"\n<link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet.css\" integrity=\"sha256-p4NxAoJBhIIN+hmNHrzRCf9tD\/miZyoHS5obTRR9BMY=\" crossorigin=\"\" \/>\n<script src=\"https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet.js\" integrity=\"sha256-20nQCchB9co0qIjJZRGuk2\/Z9VM+kNiyxNV1lvTlZBo=\" crossorigin=\"\"><\/script>\n\n<div class=\"point-map\" id=\"map\" style=\"width:100%; height:500px; position:relative;\"><\/div>\n\n<script>\nif (document.querySelector('#map')) {\n\t\t\/\/criar op\u00e7\u00f5es do mapa\n\t\tvar mapOptions = {\n\t\t\tcenter: [40.90161390612633, -0.7844513738599941],\n\t\t\tzoom: 6\n\t\t}\n\t\t\/\/criar mapa\n\t\tvar map = new L.map('map', mapOptions);\n\t\t\/\/adicionar uma nova layer\n\t\tvar layer = new L.tileLayer('https:\/\/cartodb-basemaps-{s}.global.ssl.fastly.net\/light_nolabels\/{z}\/{x}\/{y}{r}.png', {\n\t\t\tattribution: '&copy; <a href=\"http:\/\/www.openstreetmap.org\/copyright\" target=\"_blank\">OpenStreetMap<\\\/a> &copy; <a href=\"http:\/\/cartodb.com\/attributions\" target=\"_blank\">CartoDB<\\\/a>',\n\t\t\tsubdomains: 'abcd',\n\t\t\tmaxZoom: 19,\n\t\t});\n\t\t\/\/Adicionar layer ao mapa\n\t\tmap.addLayer(layer);\n\n\t\n\n\t\t\tvar percurso1 = [];\n\t\t\tpercurso1.push([\n\t\t\t\t40.149489,\n\t\t\t\t-7.922646,\n\t\t\t\t'Astronomia',\n\t\t\t\t'https:\/\/projetoentreserras.com\/residences\/astronomia\/'\n\t\t\t]);\n\n\t\t\tpercurso1.push([\n\t\t\t\t40.393118,\n\t\t\t\t-7.541670,\n\t\t\t\t'Astronomia',\n\t\t\t\t'https:\/\/projetoentreserras.com\/residences\/astronomia\/'\n\t\t\t]);\n\n\t\t\tpercurso1.push([\n\t\t\t\t43.934618,\n\t\t\t\t5.710719,\n\t\t\t\t'Astronomia',\n\t\t\t\t'https:\/\/projetoentreserras.com\/residences\/astronomia\/'\n\t\t\t]);\n\n\t\t\tpercurso1.push([\n\t\t\t\t39.421850,\n\t\t\t\t-6.497637,\n\t\t\t\t'Pedras que Falam',\n\t\t\t\t'https:\/\/projetoentreserras.com\/residences\/pedras-que-falam\/'\n\t\t\t]);\n\n\t\t\tpercurso1.push([\n\t\t\t\t39.812557,\n\t\t\t\t-7.494261,\n\t\t\t\t'Pedras que Falam',\n\t\t\t\t'https:\/\/projetoentreserras.com\/residences\/pedras-que-falam\/'\n\t\t\t]);\n\n\t\t\tpercurso1.push([\n\t\t\t\t40.245957,\n\t\t\t\t-5.297774,\n\t\t\t\t'Cartografias Ib\u00e9ricas ',\n\t\t\t\t'https:\/\/projetoentreserras.com\/residences\/cartografias-ibericas\/'\n\t\t\t]);\n\n\t\t\tpercurso1.push([\n\t\t\t\t40.321925,\n\t\t\t\t-7.613160,\n\t\t\t\t'Cartografias Ib\u00e9ricas ',\n\t\t\t\t'https:\/\/projetoentreserras.com\/residences\/cartografias-ibericas\/'\n\t\t\t]);\n\t\t\t\n\n\t\t\t\/\/adicionar pol\u00edgono no mapa com tooltip\n\t\t\t\/\/guarda a array dentro da var percurso1options para identificar o elemento que vai sofrer o click\n\t\t\tvar percurso1options = [];\n\t\t\tvar i;\n\t\t\tfor (var i = 0; i < percurso1.length; i++) {\n\t\t\t\tpercurso1options[i] =new L.CircleMarker([percurso1[i][0], percurso1[i][1]], {\n\t\t\t\tradius: map.getZoom(),\n\t\t\t\tweight: 0,\n\t\t\t\tfill: 1,\n\t\t\t\tfillColor: '#258637',\n\t\t\t\tfillOpacity: 1,\n\t\t\t\tstroke: 1,\n\t\t\t\turl: percurso1[i][3],\n\t\t\t\t});\n\t\t\t\tpercurso1options[i].addTo(map).bindTooltip(percurso1[i][2]);\n\t\t\t\tpercurso1options[i].addEventListener('click', function () {\n\t\t\t\t\t\/\/no click do percurso1options...clickado, abre o url que est\u00e1 nas op\u00e7\u00f5es defindas no\n\t\t\t\t\t\/\/for loop acima\n\t\t\t\t\t\/\/console.log(this.options)\n\t\t\t\t\twindow.open(this.options.url)\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tpercurso1options.forEach(element => {\n\t\t\t\tmap.on('zoomend', function() {\n\t\t\t\t\tvar currentZoom = map.getZoom();\n\t\t\t\t\t\/\/console.log('zoom '+ currentZoom)\n\t\t\t\t\telement.setRadius(currentZoom);\n\t\t\t\t\t\/\/console.log('el ' + element.options.radius)\n\t\t\t\t\t});\n\n\t\t})\n\n\n\t}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>This page features a geographic information system (GIS) with a spatial visualisation interface that provides access to the activities carried out under the PES_CE project. This interface allows users to explore and view all the content available on the project website, with the aim of expanding and sharing the experience gained from these activities.<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-457","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/projetoentreserras.com\/en\/wp-json\/wp\/v2\/pages\/457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/projetoentreserras.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/projetoentreserras.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/projetoentreserras.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/projetoentreserras.com\/en\/wp-json\/wp\/v2\/comments?post=457"}],"version-history":[{"count":26,"href":"https:\/\/projetoentreserras.com\/en\/wp-json\/wp\/v2\/pages\/457\/revisions"}],"predecessor-version":[{"id":1956,"href":"https:\/\/projetoentreserras.com\/en\/wp-json\/wp\/v2\/pages\/457\/revisions\/1956"}],"wp:attachment":[{"href":"https:\/\/projetoentreserras.com\/en\/wp-json\/wp\/v2\/media?parent=457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}