{"id":208,"date":"2019-10-16T08:05:29","date_gmt":"2019-10-16T16:05:29","guid":{"rendered":"http:\/\/blog.geofictician.net\/?p=208"},"modified":"2019-10-16T08:05:29","modified_gmt":"2019-10-16T16:05:29","slug":"maps-marker-test","status":"publish","type":"post","link":"https:\/\/blog.geofictician.net\/index.php\/2019\/10\/16\/maps-marker-test\/","title":{"rendered":"Maps Marker Test"},"content":{"rendered":"\n<p>Trying to test the &#8220;maps marker plugin&#8221; for use with my Hellbridge MUD worldmap. I&#8217;m feeling skeptical that I can make use of it.<\/p>\n<p><em>[UPDATE 20210530: This maps marker plugin has stopped working. They want money to &#8220;upgrade&#8221; to some paid version. Nuh-uh. Therefore&#8230; well, here&#8217;s an alternate way to put a marker, but I don&#8217;t know if it could work for my Hellbridge project or not.]<\/em><\/p>\n\n\n\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([41.9411,-66.8463],15);window.WPLeafletMapPlugin.createScale({});});<\/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({});\nvar marker = L.marker(\n    [41.9411,-66.8463],\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 );\nwindow.WPLeafletMapPlugin.markers.push( marker );\n        });<\/script>\n\n\n\n<p>Music to test wordpress plugins to: <a href=\"https:\/\/www.youtube.com\/watch?v=kM5ABrBy7g8\">Loreena McKennitt &#8220;Bonny Portmore&#8221;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trying to test the &#8220;maps marker plugin&#8221; for use with my Hellbridge MUD worldmap. I&#8217;m feeling skeptical that I can make use of it. [UPDATE 20210530: This maps marker plugin has stopped working. They want money to &#8220;upgrade&#8221; to some paid version. Nuh-uh. Therefore&#8230; well, here&#8217;s an alternate way to put a marker, but I &hellip; <a href=\"https:\/\/blog.geofictician.net\/index.php\/2019\/10\/16\/maps-marker-test\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Maps Marker Test<\/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":[4],"tags":[],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-hellbridge-mud"],"_links":{"self":[{"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/posts\/208","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=208"}],"version-history":[{"count":0,"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.geofictician.net\/index.php\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}