<div class="osm_error_msg"><p><strong style="color:red">[OSM-Plugin-Error]:[OL3_createMarkerList]: No posts/pages with geotag found! </strong></p></div><div class="osm_error_msg"><p><strong style="color:red">[OSM-Plugin-Error]:CustomField: OSM_geo_data</strong></p></div><div class="osm_error_msg"><p><strong style="color:red">[OSM-Plugin-Error]:PostType: post</strong></p></div><div class="osm_error_msg"><p><strong style="color:red">[OSM-Plugin-Error]:Tagged_Filter: osm_all</strong></p></div>

{"id":4376,"date":"2022-09-30T18:13:15","date_gmt":"2022-09-30T18:13:15","guid":{"rendered":"https:\/\/weathertoboat.ca\/?p=4376"},"modified":"2022-09-30T18:13:15","modified_gmt":"2022-09-30T18:13:15","slug":"map1","status":"publish","type":"post","link":"https:\/\/weathertoboat.ca\/fr\/map1\/","title":{"rendered":"map1"},"content":{"rendered":"<div id=\"map_ol3js_1\" class=\"map undefined\" data-map_name=\"undefined\" data-map=\"map_ol3js_1\" style=\"width:100%; max-width:100%; height:450px; display:block; overflow:hidden;border:thin solid grey;\" >\n\t\t\t\t  <div id=\"map_ol3js_1_popup\" class=\"ol-popup\" >\n\t\t\t\t\t<a href=\"#\" id=\"map_ol3js_1_popup-closer\" class=\"ol-popup-closer\"><\/a>\n\t\t\t\t\t<div id=\"map_ol3js_1_popup-content\" ><\/div>\n\t\t\t\t  <\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<link rel=\"stylesheet\" href=\"https:\/\/weathertoboat.ca\/wp-content\/plugins\/osm\/js\/OL\/6.9.0\/ol.css?ver=6.9.0\" type=\"text\/css\">\n\t\t\t\t<link rel=\"stylesheet\" href=\"https:\/\/weathertoboat.ca\/wp-content\/plugins\/osm\/css\/osm_map_v3.css?ver=1.0.0\" type=\"text\/css\">\n\t\t\t\t<link rel=\"stylesheet\" href=\"https:\/\/weathertoboat.ca\/wp-content\/plugins\/osm\/css\/osm_map.css?ver=1.0.0\" type=\"text\/css\">\n\t\t\t\t<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->\n                                <script src=\"https:\/\/weathertoboat.ca\/wp-content\/plugins\/osm\/js\/polyfill\/v2\/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL\"><\/script>\n\n\t\t\t\t<script src=\"https:\/\/weathertoboat.ca\/wp-content\/plugins\/osm\/js\/OL\/6.9.0\/ol.js?ver=6.9.0\" type=\"text\/javascript\"><\/script>\n\t\t\t\t<script src=\"https:\/\/weathertoboat.ca\/wp-content\/plugins\/osm\/js\/osm-v3-plugin-lib.js?ver=1.0.0\" type=\"text\/javascript\"><\/script>\n\t\t\t\t<script src=\"https:\/\/weathertoboat.ca\/wp-content\/plugins\/osm\/js\/osm-metabox-events.js?ver=1.0.0\" type=\"text\/javascript\"><\/script>\n\t\t\t\t<script src=\"https:\/\/weathertoboat.ca\/wp-content\/plugins\/osm\/js\/osm-startup-lib.js\" type=\"text\/javascript\"><\/script>\n\t\t\t\t<script type=\"text\/javascript\">\n\t\t\t\t\ttranslations['openlayer'] = \"open layer\";\n\t\t\t\t\ttranslations['openlayerAtStartup'] = \"open layer at startup\";\n\t\t\t\t\ttranslations['generateLink'] = \"link to this map with opened layers\";\n\t\t\t\t\ttranslations['shortDescription'] = \"short description\";\n\t\t\t\t\ttranslations['generatedShortCode'] = \"to get a text control link paste this code in your wordpress editor\";\n\t\t\t\t\ttranslations['closeLayer'] = \"close layer\";\n\t\t\t\t\ttranslations['cantGenerateLink'] = \"put this string in the existing map short code to control this map\";\n\t\t\t  <\/script>\n\n\n\t\t\t  <script type=\"text\/javascript\">\n\t\t\t  vectorM['map_ol3js_1'] = [];\n\t        \n        var raster = getTileLayer(\"openseamap\",\"NoKey\");\t\t\t\n\n\t\t\t  var map_ol3js_1 = new ol.Map({\n\t\t\t\tinteractions: ol.interaction.defaults({mouseWheelZoom:false}),\n\t\t\t\tlayers: [raster],\n\t\t\t\ttarget: \"map_ol3js_1\",\n\t\t\t\tview: new ol.View({\n\t\t\t\t  center: ol.proj.transform([6.378,58.213], \"EPSG:4326\", \"EPSG:3857\"),\n\t\t\t\t  zoom: 5\n\t\t\t\t})\n\t\t\t  });\n\t\t\t  \n\n          var Layer2 = new ol.layer.Tile({\n            source: new ol.source.OSM({\n              attributions: \"Maps &copy; \" +\n              \"<a href=\\\"http:\/\/www.openseamap.org\/\\\">OpenSeaMap<\/a>\",\n              crossOrigin: null,\n              url: \"https:\/\/t1.openseamap.org\/seamark\/{z}\/{x}\/{y}.png\"\n            }),\n            className: \"ol-openseamap\",\n            zIndex: 91\n          });\t\t\t  \n\t\t\t  \n\t\t\t  map_ol3js_1.addLayer(Layer2);\n\t\t\t  var vectorMarkerSource = new ol.source.Vector({});\n\t\t\t  var vectorMarkerLayer = new ol.layer.Vector({\n\t\t\t\tsource: vectorMarkerSource,\n\t\t\t\tzIndex: 92\n\t\t\t   });\n\t\t\tmap_ol3js_1.addLayer(vectorMarkerLayer);\n      var extension1 = ol.extent.createEmpty();\n      var curZoom1 = map_ol3js_1.getView().getZoom();\n\n      map_ol3js_1.getLayers().forEach(function(layer){\n         if(!layer.get(\"id\")) {     \n            layer.once(\"change\", function(e){\n               ol.extent.extend(extension1, (layer.getSource().getExtent()));\n               map_ol3js_1.getView().fit(extension1, {padding: [50, 50, 50, 50],maxZoom: 5});\n            });\n         }\n      });\n\n    \naddControls2Map(map_ol3js_1,0,0,3,0,5,6,7,0,1);\nosm_addPopupClickhandler(map_ol3js_1,  \"map_ol3js_1\"); \nosm_addMouseHover(map_ol3js_1); <\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/weathertoboat.ca\/fr\/wp-json\/wp\/v2\/posts\/4376"}],"collection":[{"href":"https:\/\/weathertoboat.ca\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/weathertoboat.ca\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/weathertoboat.ca\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/weathertoboat.ca\/fr\/wp-json\/wp\/v2\/comments?post=4376"}],"version-history":[{"count":1,"href":"https:\/\/weathertoboat.ca\/fr\/wp-json\/wp\/v2\/posts\/4376\/revisions"}],"predecessor-version":[{"id":4377,"href":"https:\/\/weathertoboat.ca\/fr\/wp-json\/wp\/v2\/posts\/4376\/revisions\/4377"}],"wp:attachment":[{"href":"https:\/\/weathertoboat.ca\/fr\/wp-json\/wp\/v2\/media?parent=4376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weathertoboat.ca\/fr\/wp-json\/wp\/v2\/categories?post=4376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weathertoboat.ca\/fr\/wp-json\/wp\/v2\/tags?post=4376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}