{"id":23,"date":"2026-11-22T23:15:07","date_gmt":"2026-11-22T23:15:07","guid":{"rendered":"https:\/\/moderngeopolitics101.eu\/?page_id=23"},"modified":"2026-11-22T23:15:07","modified_gmt":"2026-11-22T23:15:07","slug":"interactive-incidents-map","status":"publish","type":"page","link":"https:\/\/moderngeopolitics101.eu\/index.php\/interactive-incidents-map\/","title":{"rendered":"Interactive Incidents Map"},"content":{"rendered":"\n<div id=\"mgmap\" style=\"height:520px;border-radius:6px;overflow:hidden;background:#111f3b;color:#9db0cf;display:flex;align-items:center;justify-content:center;text-align:center;padding:16px\">The satellite map will appear here once a Google Maps key is added.<\/div>\n<script>\n(function () {\n  var KEY = \"YOUR_GOOGLE_MAPS_API_KEY\";\n  var COLORS = { military: \"#d9453f\", maritime: \"#2f8ae6\", civilian: \"#e69a1f\", diplomatic: \"#2fa874\" };\n\n  \/* Add real incidents here, one per line, each with a source. Example format (delete this comment when you add real ones):\n     { place: \"City, Country\", lat: 0.0, lng: 0.0, date: \"2026-11-20\", type: \"military\", title: \"Short title\", summary: \"One sentence.\", source: \"Outlet name\", url: \"https:\/\/link-to-the-article\" }, *\/\n  var INCIDENTS = [\n  ];\n\n  if (KEY.indexOf(\"YOUR_\") === 0) return;\n  window.mgInit = function () {\n    var el = document.getElementById(\"mgmap\");\n    el.style.display = \"block\"; el.textContent = \"\";\n    var map = new google.maps.Map(el, { center: { lat: 33, lng: 38 }, zoom: 4, mapTypeId: \"satellite\", streetViewControl: false });\n    var iw = new google.maps.InfoWindow();\n    INCIDENTS.forEach(function (i) {\n      var m = new google.maps.Marker({ position: { lat: i.lat, lng: i.lng }, map: map, title: i.title,\n        icon: { path: google.maps.SymbolPath.CIRCLE, scale: 9, fillColor: COLORS[i.type], fillOpacity: 0.95, strokeColor: \"#fff\", strokeWeight: 2 } });\n      m.addListener(\"click\", function () {\n        var b = document.createElement(\"div\");\n        b.style.cssText = \"color:#14202e;max-width:240px;font:14px\/1.45 sans-serif\";\n        var h = document.createElement(\"strong\"); h.textContent = i.title + \" (\" + i.place + \")\";\n        var d = document.createElement(\"div\"); d.style.cssText = \"color:#5a6877;font-size:12px;margin:2px 0 6px\"; d.textContent = i.date;\n        var p = document.createElement(\"div\"); p.textContent = i.summary;\n        var a = document.createElement(\"a\"); a.href = i.url; a.target = \"_blank\"; a.rel = \"noopener noreferrer\"; a.textContent = \"Source: \" + i.source;\n        b.append(h, d, p, a); iw.setContent(b); iw.open(map, m);\n      });\n    });\n  };\n  var s = document.createElement(\"script\");\n  s.src = \"https:\/\/maps.googleapis.com\/maps\/api\/js?key=\" + encodeURIComponent(KEY) + \"&callback=mgInit\";\n  s.async = true; document.head.appendChild(s);\n})();\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The satellite map will appear here once a Google Maps key is added.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-23","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/moderngeopolitics101.eu\/index.php\/wp-json\/wp\/v2\/pages\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moderngeopolitics101.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/moderngeopolitics101.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/moderngeopolitics101.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moderngeopolitics101.eu\/index.php\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":1,"href":"https:\/\/moderngeopolitics101.eu\/index.php\/wp-json\/wp\/v2\/pages\/23\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/moderngeopolitics101.eu\/index.php\/wp-json\/wp\/v2\/pages\/23\/revisions\/24"}],"wp:attachment":[{"href":"https:\/\/moderngeopolitics101.eu\/index.php\/wp-json\/wp\/v2\/media?parent=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}