{"id":47,"date":"2018-03-18T21:43:18","date_gmt":"2018-03-18T12:43:18","guid":{"rendered":"http:\/\/blog.geofictician.net\/?p=47"},"modified":"2018-03-18T21:43:18","modified_gmt":"2018-03-18T12:43:18","slug":"testing-the-leaflet-widget-on-the-blog","status":"publish","type":"post","link":"https:\/\/blog.geofictician.net\/index.php\/2018\/03\/18\/testing-the-leaflet-widget-on-the-blog\/","title":{"rendered":"Testing the leaflet widget on the blog"},"content":{"rendered":"<p>Here&#8217;s a live leaflet of my own tileserver with my own planet (stripped of detail because I want my database small as I test things). Welcome to Rahet. <em>UPDATE, OCTOBER 2019: Being a dynamic window on the map, rather than a snapshot, means that since the &#8220;planet&#8221; shown is much changed, this view is not the view that existed when this blog post was written.<\/em><\/p>\n<div class=\"leaflet-map WPLeafletMap\" style=\"height:400px; width:100%;\"><\/div><script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletMapShortcode() {\/*<script>*\/\nvar baseUrl = atob('aHR0cHM6Ly90aWxlczAxLnJlbnQtYS1wbGFuZXQuY29tL2FyaGV0Mi1jYXJ0by97en0ve3h9L3t5fS5wbmc=');\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\":20}        )\n    );\n    var options = L.Util.extend({}, {\n        layers: [base],\n        attributionControl: false\n    },\n    {\"zoomControl\":true,\"scrollWheelZoom\":true,\"doubleClickZoom\":true,\"fitBounds\":false,\"minZoom\":0,\"maxZoom\":20,\"maxBounds\":null,\"attribution\":\"<a href=\\\"http:\\\/\\\/leafletjs.com\\\" title=\\\"A JS library for interactive maps\\\">Leaflet<\\\/a>; \\u00a9 <a href=\\\"https:\\\/\\\/opengeofiction.net\\\/copyright\\\">OpenGeofiction<\\\/a> contributors\"},\n    {});\nwindow.WPLeafletMapPlugin.createMap(options).setView([-1,-1],1);window.WPLeafletMapPlugin.createScale({});});<\/script>\n<p>Here&#8217;s a view of T\u00e1rrases over at OGF on standard layer.<\/p>\n<div class=\"leaflet-map WPLeafletMap\" style=\"height:400px; width:100%;\"><\/div><script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletMapShortcode() {\/*<script>*\/\nvar baseUrl = atob('aHR0cHM6Ly90aWxlLm9wZW5nZW9maWN0aW9uLm5ldC9vZ2YtY2FydG8ve3p9L3t4fS97eX0ucG5n');\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\":20}        )\n    );\n    var options = L.Util.extend({}, {\n        layers: [base],\n        attributionControl: false\n    },\n    {\"zoomControl\":true,\"scrollWheelZoom\":true,\"doubleClickZoom\":true,\"fitBounds\":false,\"minZoom\":0,\"maxZoom\":20,\"maxBounds\":null,\"attribution\":\"<a href=\\\"http:\\\/\\\/leafletjs.com\\\" title=\\\"A JS library for interactive maps\\\">Leaflet<\\\/a>; \\u00a9 <a href=\\\"https:\\\/\\\/opengeofiction.net\\\/copyright\\\">OpenGeofiction<\\\/a> contributors\"},\n    {});\nwindow.WPLeafletMapPlugin.createMap(options).setView([-58.2933,83.9783],12);window.WPLeafletMapPlugin.createScale({});});<\/script>\n<p>Here&#8217;s a view of T\u00e1rrases over at OGF on Topo layer. <em>[UPDATE 20210530: The OGF Topo layer is no longer functioning.] [UPDATE2 20230315: The OGF Topo layer is once again functioning, and has been for over a year.]<\/em><\/p>\n<div class=\"leaflet-map WPLeafletMap\" style=\"height:400px; width:100%;\"><\/div><script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletMapShortcode() {\/*<script>*\/\nvar baseUrl = atob('aHR0cHM6Ly90aWxlLm9wZW5nZW9maWN0aW9uLm5ldC9vZ2YtdG9wby97en0ve3h9L3t5fS5wbmc=');\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\":20}        )\n    );\n    var options = L.Util.extend({}, {\n        layers: [base],\n        attributionControl: false\n    },\n    {\"zoomControl\":true,\"scrollWheelZoom\":true,\"doubleClickZoom\":true,\"fitBounds\":false,\"minZoom\":0,\"maxZoom\":20,\"maxBounds\":null,\"attribution\":\"<a href=\\\"http:\\\/\\\/leafletjs.com\\\" title=\\\"A JS library for interactive maps\\\">Leaflet<\\\/a>; \\u00a9 <a href=\\\"https:\\\/\\\/opengeofiction.net\\\/copyright\\\">OpenGeofiction<\\\/a> contributors\"},\n    {});\nwindow.WPLeafletMapPlugin.createMap(options).setView([-58.2933,83.9783],12);window.WPLeafletMapPlugin.createScale({});});<\/script>\n<p>That&#8217;s pretty cool.<\/p>\n<p>Music to map by: <a href=\"https:\/\/www.youtube.com\/watch?v=XkbQDChgmX8\">Cold, &#8220;Bleed.&#8221;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a live leaflet of my own tileserver with my own planet (stripped of detail because I want my database small as I test things). Welcome to Rahet. UPDATE, OCTOBER 2019: Being a dynamic window on the map, rather than a snapshot, means that since the &#8220;planet&#8221; shown is much changed, this view is not &hellip; <a href=\"https:\/\/blog.geofictician.net\/index.php\/2018\/03\/18\/testing-the-leaflet-widget-on-the-blog\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Testing the leaflet widget on the blog<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-hrate","category-mahhal-tarrases"],"_links":{"self":[{"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":0,"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}