










































































































































































































































































































































































{"id":58399,"date":"2025-04-05T00:39:49","date_gmt":"2025-04-05T00:39:49","guid":{"rendered":"http:\/\/3.128.45.232\/maps\/"},"modified":"2025-04-05T00:40:18","modified_gmt":"2025-04-05T00:40:18","slug":"maps","status":"publish","type":"page","link":"https:\/\/excavations.ie\/ga\/maps\/","title":{"rendered":"Maps"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"58399\" class=\"elementor elementor-58399\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-25e94e25 e-flex e-con-boxed e-con e-parent\" data-id=\"25e94e25\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-676e5025 elementor-widget elementor-widget-heading\" data-id=\"676e5025\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Mapping<\/h1>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-666381de e-flex e-con-boxed e-con e-parent\" data-id=\"666381de\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-278a5b76 mb-p-0 elementor-widget elementor-widget-text-editor\" data-id=\"278a5b76\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>Use the Map feature below to search the database by location.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-30e904e2 elementor-widget elementor-widget-shortcode\" data-id=\"30e904e2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\t\t<div class='map-container'>\n\t\t\t<!-- <div id='map' style='width: 100%; padding-bottom: 56.25%;'><\/div> !-->\n\t\t\t<div id='map' style='width: 100%;'><\/div>\n\t\t\t<nav id='filter-group' class='filter-group'>\n\t\t\t\t<a href=\"https:\/\/excavations.ie\/ga\/maps\/?type=excavation\" class=\"\">Excavations<\/a>\n\t\t\t\t<a href=\"https:\/\/excavations.ie\/ga\/maps\/?type=historical-site\" class=\"\">NMI Burial Excavation Records<\/a>\n\t\t\t\t<a href=\"https:\/\/excavations.ie\/ga\/maps\/?type=all\" class=\"active\">All<\/a>\n\t\t\t<\/nav>\n\t\t<\/div>\n\t\t\n\t\t<script>\n\t\t\tjQuery(document).ready(function($) {\n\t\t\t\tString.prototype.repeat = function( num ) {\n\t\t\t\t\treturn new Array( num + 1 ).join( this );\n\t\t\t\t}\n\t\t\t\n\t\t\t\tmapboxgl.accessToken = 'pk.eyJ1IjoiZXhjYWFkbWluIiwiYSI6ImNtazNrdmZvZzB1cnQzZ29ldDMzZnJhaWQifQ.GYJeKyRxabjaiwcIWy2xFA';\n\t\t\t\t\n\t\t\t\tvar current_type = \"all\";\n\t\t\t\tvar filterGroup = document.getElementById('filter-group');\n\t\t\t\tvar listing_type = [\n\t\t\t\t\t{ \n\t\t\t\t\t\tkey: \"excavation\",\n\t\t\t\t\t\tlabel: \"Excavation\"\n\t\t\t\t\t},\n\t\t\t\t\t{ \n\t\t\t\t\t\tkey: \"historical-site\",\n\t\t\t\t\t\tlabel: \"NMI Burial Excavation Records\"\n\t\t\t\t\t}\n\t\t\t\t];\n\t\t\t\tvar map = new mapboxgl.Map({\n\t\t\t\t\tcontainer: 'map',\n\t\t\t\t\t\/\/style: 'mapbox:\/\/styles\/catherinetrebble\/cjiuemy823zen2sqsczjx6fxq', \n\t\t\t\t\t\/\/style: 'mapbox:\/\/styles\/albertillumedia\/cmk24l7z2005j01st8ts2a567',\n\t\t\t\t\tstyle: 'mapbox:\/\/styles\/excaadmin\/cmk4sup81006301ss9viscrr1',\n\t\t\t\t\tcenter: [-7.568,53.418],\n\t\t\t\t\tzoom: 5.9\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tmap.on('load', function() {\n\t\t\t\t\tif( current_type == \"excavation\" || current_type == \"all\" ) {\n\t\t\t\t\t\tmap.addSource(\"reports\", {\n\t\t\t\t\t\t\ttype: \"geojson\",\n\t\t\t\t\t\t\tdata: \"https:\/\/excavations.ie\/wp-content\/excavations-map-1-13-2026.geojson\",\n\t\t\t\t\t\t\tcluster: true,\n\t\t\t\t\t\t\tclusterMaxZoom: 8, \/\/ Max zoom to cluster points on\n\t\t\t\t\t\t\tclusterRadius: 50 \/\/ Radius of each cluster when clustering points (defaults to 50)\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t\tmap.addLayer({\n\t\t\t\t\t\t\tid: \"clusters-reports\",\n\t\t\t\t\t\t\ttype: \"circle\",\n\t\t\t\t\t\t\tsource: \"reports\",\n\t\t\t\t\t\t\tfilter: [\"has\", \"point_count\"],\n\t\t\t\t\t\t\tpaint: {\n\t\t\t\t\t\t\t\t\"circle-color\": [\n\t\t\t\t\t\t\t\t\t\"step\",\n\t\t\t\t\t\t\t\t\t[\"get\", \"point_count\"],\n\t\t\t\t\t\t\t\t\t\"#06b9d9\",\n\t\t\t\t\t\t\t\t\t100,\n\t\t\t\t\t\t\t\t\t\"#069dd9\",\n\t\t\t\t\t\t\t\t\t750,\n\t\t\t\t\t\t\t\t\t\"#0669d9\"\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\"circle-radius\": [\n\t\t\t\t\t\t\t\t\t\"step\",\n\t\t\t\t\t\t\t\t\t[\"get\", \"point_count\"],\n\t\t\t\t\t\t\t\t\t20,\n\t\t\t\t\t\t\t\t\t100,\n\t\t\t\t\t\t\t\t\t30,\n\t\t\t\t\t\t\t\t\t750,\n\t\t\t\t\t\t\t\t\t40\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tmap.addLayer({\n\t\t\t\t\t\t\tid: \"cluster-count-reports\",\n\t\t\t\t\t\t\ttype: \"symbol\",\n\t\t\t\t\t\t\tsource: \"reports\",\n\t\t\t\t\t\t\tfilter: [\"has\", \"point_count\"],\n\t\t\t\t\t\t\tlayout: {\n\t\t\t\t\t\t\t\t\"text-field\": \"{point_count_abbreviated}\",\n\t\t\t\t\t\t\t\t\"text-font\": [\"DIN Offc Pro Medium\", \"Arial Unicode MS Bold\"],\n\t\t\t\t\t\t\t\t\"text-size\": 12\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t\tmap.addLayer({\n\t\t\t\t\t\t\tid: \"excavation\",\n\t\t\t\t\t\t\ttype: \"symbol\",\n\t\t\t\t\t\t\tsource: \"reports\",\n\t\t\t\t\t\t\tfilter: [\n\t\t\t\t\t\t\t\t\"any\",\n\t\t\t\t\t\t\t\t[\"==\", \"listing_type\", \"\"],\n\t\t\t\t\t\t\t\t[\"==\", \"listing_type\", \"excavation\"]\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tlayout: {\n\t\t\t\t\t\t\t\t\"icon-image\": \"marker-15-blue\",\n\t\t\t\t\t\t\t\t\"icon-allow-overlap\": true\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif( current_type == \"historical-site\" || current_type == \"all\" ) {\n\t\t\t\t\t\tmap.addSource(\"historical_reports\", {\n\t\t\t\t\t\t\ttype: \"geojson\",\n\t\t\t\t\t\t\tdata: \"https:\/\/excavations.ie\/wp-content\/uploads\/2026\/01\/1_7_2026-historical_map.geojson\",\n\t\t\t\t\t\t\tcluster: true,\n\t\t\t\t\t\t\tclusterMaxZoom: 8, \/\/ Max zoom to cluster points on\n\t\t\t\t\t\t\tclusterRadius: 50 \/\/ Radius of each cluster when clustering points (defaults to 50)\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tmap.addLayer({\n\t\t\t\t\t\t\tid: \"clusters-historical_reports\",\n\t\t\t\t\t\t\ttype: \"circle\",\n\t\t\t\t\t\t\tsource: \"historical_reports\",\n\t\t\t\t\t\t\tfilter: [\"has\", \"point_count\"],\n\t\t\t\t\t\t\tpaint: {\n\t\t\t\t\t\t\t\t\"circle-color\": [\n\t\t\t\t\t\t\t\t\t\"step\",\n\t\t\t\t\t\t\t\t\t[\"get\", \"point_count\"],\n\t\t\t\t\t\t\t\t\t\"#e9c500\",\n\t\t\t\t\t\t\t\t\t100,\n\t\t\t\t\t\t\t\t\t\"#e99a00\",\n\t\t\t\t\t\t\t\t\t750,\n\t\t\t\t\t\t\t\t\t\"#e97e00\"\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\"circle-radius\": [\n\t\t\t\t\t\t\t\t\t\"step\",\n\t\t\t\t\t\t\t\t\t[\"get\", \"point_count\"],\n\t\t\t\t\t\t\t\t\t20,\n\t\t\t\t\t\t\t\t\t100,\n\t\t\t\t\t\t\t\t\t30,\n\t\t\t\t\t\t\t\t\t750,\n\t\t\t\t\t\t\t\t\t40\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tmap.addLayer({\n\t\t\t\t\t\t\tid: \"cluster-count-historical_reports\",\n\t\t\t\t\t\t\ttype: \"symbol\",\n\t\t\t\t\t\t\tsource: \"historical_reports\",\n\t\t\t\t\t\t\tfilter: [\"has\", \"point_count\"],\n\t\t\t\t\t\t\tlayout: {\n\t\t\t\t\t\t\t\t\"text-field\": \"{point_count_abbreviated}\",\n\t\t\t\t\t\t\t\t\"text-font\": [\"DIN Offc Pro Medium\", \"Arial Unicode MS Bold\"],\n\t\t\t\t\t\t\t\t\"text-size\": 12\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t\tmap.addLayer({\n\t\t\t\t\t\t\tid: \"historical-site\",\n\t\t\t\t\t\t\ttype: \"symbol\",\n\t\t\t\t\t\t\tsource: \"historical_reports\",\n\t\t\t\t\t\t\tfilter: [\"==\", \"listing_type\", \"historical-site\"],\n\t\t\t\t\t\t\tlayout: {\n\t\t\t\t\t\t\t\t\"icon-image\": \"star-15-yellow\",\n\t\t\t\t\t\t\t\t\"icon-allow-overlap\": true\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlisting_type.forEach( function(type) {\n\t\t\t\t\t\t\/\/ Change the cursor to a pointer when the mouse is over the places layer.\n\t\t\t\t\t\tmap.on('mouseenter', type.key, function () {\n\t\t\t\t\t\t\tmap.getCanvas().style.cursor = 'pointer';\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\/\/ Change it back to a pointer when it leaves.\n\t\t\t\t\t\tmap.on('mouseleave', type.key, function () {\n\t\t\t\t\t\t\tmap.getCanvas().style.cursor = '';\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tmap.on('click', 'excavation', function (e) {\n\t\t\t\t\t\tvar feature = e.features[0];\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar report_id_length = ( feature.properties.id.length < 7 ) ? ( 7 - feature.properties.id.length ) : feature.properties.id.length;\n\t\t\t\t\t\tvar str_report = \"0\";\n\t\t\t\t\t\tvar report_id = str_report.repeat( report_id_length ) + feature.properties.id;\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar report_url = \"https:\/\/excavations.ie\" + \"\/report\/\" + feature.properties.year + '\/' + feature.properties.county + '\/' + report_id;\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar popup = new mapboxgl.Popup({ offset: [0, -15] })\n\t\t\t\t\t\t.setLngLat(feature.geometry.coordinates)\n\t\t\t\t\t\t.setHTML('<h3>' + feature.properties.siteNumber + ' - ' + feature.properties.siteName + '<\/h3><p><strong>Author: <\/strong>' + feature.properties.author + '<\/p><p><strong>County: <\/strong>' + feature.properties.county + '<\/p><a href=\"' + report_url +  '\" target=\"_blank\">View Report<\/a>')\n\t\t\t\t\t\t.addTo(map);\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tmap.on('click', 'historical-site', function (e) {\n\t\t\t\t\t\tvar feature = e.features[0];\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar report_id_length = ( feature.properties.id.length < 7 ) ? ( 7 - feature.properties.id.length ) : feature.properties.id.length;\n\t\t\t\t\t\tvar str_report = \"0\";\n\t\t\t\t\t\tvar report_id = str_report.repeat( report_id_length ) + feature.properties.id;\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar report_url = \"https:\/\/excavations.ie\" + \"\/report\/\" + feature.properties.year + '\/' + feature.properties.county + '\/' + report_id;\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar popup = new mapboxgl.Popup({ offset: [0, -15] })\n\t\t\t\t\t\t.setLngLat(feature.geometry.coordinates)\n\t\t\t\t\t\t.setHTML('<div class=\"historical-site-popup\"><span>Historical Site<\/span><h3>' + feature.properties.site_type + '<\/h3><p class=\"site-name\">' + feature.properties.siteName + '<\/p><div class=\"site-image\"><img decoding=\"async\" src=\"' + feature.properties.report_img + '\"\/><\/div><p><strong>License: <\/strong>' + feature.properties.excavation_license_number + '<\/p><p><strong>SMR#: <\/strong>' + feature.properties.site_monument_record_no + '<\/p><p><strong>County: <\/strong>' + feature.properties.county + '<\/p><p><strong>Author: <\/strong>' + feature.properties.author + '<\/p><a href=\"' + report_url +  '\" target=\"_blank\">View Report<\/a><\/div>')\n\t\t\t\t\t\t.addTo(map);\n\t\t\t\t\t});\n\t\t\t\t});\n\n\t\t\t\tmap.addControl(new MapboxGeocoder({\n\t\t\t\t\taccessToken: mapboxgl.accessToken,\n\t\t\t\t\tcountry: 'ie,gb',\n\t\t\t\t\tfilter: function (item) {\n\t\t\t\t\t\treturn item.context.map(function (i) {\n\t\t\t\t\t\t\treturn ((i.id.split('.').shift() === 'country' && i.text === 'Ireland') || (i.id.split('.').shift() === 'region' && i.text === 'Northern Ireland'));\n\t\t\t\t\t\t}).reduce(function (acc, cur) {\n\t\t\t\t\t\t\treturn acc || cur;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}));\n\t\t\t\t\n\t\t\t\t\/\/ Add zoom and rotation controls to the map.\n\t\t\t\tmap.addControl(new mapboxgl.NavigationControl());\n\t\t\t\t\n\t\t\t\t\/\/ disable map rotation using right click + drag\n\t\t\t\tmap.dragRotate.enable();\n\t\t\t});\n\t\t<\/script>\n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6910790e elementor-align-center elementor-widget elementor-widget-button\" data-id=\"6910790e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"\/reports\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Advanced Search<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Mapping Use the Map feature below to search the database by location. Advanced Search<\/p>","protected":false},"author":17,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-58399","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/excavations.ie\/ga\/wp-json\/wp\/v2\/pages\/58399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/excavations.ie\/ga\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/excavations.ie\/ga\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/excavations.ie\/ga\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/excavations.ie\/ga\/wp-json\/wp\/v2\/comments?post=58399"}],"version-history":[{"count":0,"href":"https:\/\/excavations.ie\/ga\/wp-json\/wp\/v2\/pages\/58399\/revisions"}],"wp:attachment":[{"href":"https:\/\/excavations.ie\/ga\/wp-json\/wp\/v2\/media?parent=58399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}