



{"id":307,"date":"2010-04-20T14:00:48","date_gmt":"2010-04-20T11:00:48","guid":{"rendered":"http:\/\/ptf.pajero4x4.ru\/?p=307"},"modified":"2017-04-24T12:35:51","modified_gmt":"2017-04-24T08:35:51","slug":"%d0%b3%d0%b5%d0%be%d0%b3%d1%80%d0%b0%d1%84%d0%b8%d1%8f-%d1%83%d1%87%d0%b0%d1%81%d1%82%d0%bd%d0%b8%d0%ba%d0%be%d0%b2","status":"publish","type":"post","link":"https:\/\/ptf.pajero4x4.ru\/?p=307","title":{"rendered":"\u0413\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432"},"content":{"rendered":"<div id=\"ShortCode_Div\">\n        <div id=\"map_ol3js_1\"\n             class=\"map undefined\"\n             data-map_name=\"undefined\"\n             data-map=\"map_ol3js_1\"\n             style=\"width:100%;\n                    max-width:100%;\n                    height:450px;\n                    display:block;\n                    overflow:hidden;\n                    border:2px solid grey;\">\n          <div id=\"map_ol3js_1_popup\" class=\"ol-popup\">\n            <a href=\"#\" id=\"map_ol3js_1_popup-closer\" class=\"ol-popup-closer\"><\/a>\n            <div id=\"map_ol3js_1_popup-content\"><\/div>\n          <\/div>\n        <\/div>\n    \n\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(\"osm\",\"NoKey\");\t\t\t\n\n\t\t\t  var map_ol3js_1 = new ol.Map({\n\t\t\t\tinteractions: ol.interaction.defaults.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([51.658,59.41], \"EPSG:4326\", \"EPSG:3857\"),\n\t\t\t\t  zoom: 4\n\t\t\t\t})\n\t\t\t  });\n\t\t\t  \n    var style0 = {\n      \"Point\": [new ol.style.Style({\n\n          image: new ol.style.Icon({\n            anchor: [0.5, 41],\n            anchorXUnits: \"fraction\",\n            anchorYUnits: \"pixels\",\n            opacity: 0.75,\n            src: \"https:\/\/ptf.pajero4x4.ru\/wp-content\/plugins\/osm\/icons\/mic_blue_pinother_02.png\"\n          })\n      })],\n\n      \"LineString\": [new ol.style.Style({\n        stroke: new ol.style.Stroke({\n          color: \"blue\",\n          width: 8\n        })\n      })],\n      \"MultiLineString\": [new ol.style.Style({\n        stroke: new ol.style.Stroke({\n          color: \"blue\",\n          width: 4\n        })\n      })]\n    };\n\t\t  vectorL0 = new ol.layer.Vector({\n\n\t\t\tsource: new ol.source.Vector({\n\t\t  url:\"\/ptf\/ptf.kml\",\n\t\t\t  format: new ol.format.KML({ showPointNames: false})\n\t\t\t}),\n         zIndex: 92\n\t\t  });map_ol3js_1.addLayer(vectorL0);addControls2Map(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><\/div>\n","protected":false},"excerpt":{"rendered":"<p> translations[&#8216;openlayer&#8217;] = &#171;open layer&#187;; translations[&#8216;openlayerAtStartup&#8217;] = &#171;open layer at startup&#187;; translations[&#8216;generateLink&#8217;] = &#171;link to this map with opened layers&#187;; translations[&#8216;shortDescription&#8217;] = &#171;short description&#187;; translations[&#8216;generatedShortCode&#8217;] = &#171;to get a text control link paste this code in your wordpress editor&#187;; translations[&#8216;closeLayer&#8217;] = &#171;close layer&#187;; translations[&#8216;cantGenerateLink&#8217;] = &#171;put this string in the existing map short code to control this map&#187;;<\/p>\n<p>\t\t\t  vectorM[&#8216;map_ol3js_2&#8217;] = [];<\/p>\n<p>        var raster = getTileLayer(&#171;osm&#187;,&#187;NoKey&#187;);\t\t\t<\/p>\n<p>\t\t\t  var map_ol3js_2 = new ol.Map({<br \/>\n\t\t\t\tinteractions: ol.interaction.defaults.defaults({mouseWheelZoom:false}),<br \/>\n\t\t\t\tlayers: [raster],<br \/>\n\t\t\t\ttarget: &#171;map_ol3js_2&#187;,<br \/>\n\t\t\t\tview: new ol.View({<br \/>\n\t\t\t\t  center: ol.proj.transform([51.658,59.41], &#171;EPSG:4326&#187;, &#171;EPSG:3857&#187;),<br \/>\n\t\t\t\t  zoom: 4<br \/>\n\t\t\t\t})<br \/>\n\t\t\t  });<\/p>\n<p>    var style0 = {<br \/>\n      &#171;Point&#187;: [new ol.style.Style({<\/p>\n<p>          image: new ol.style.Icon({<br \/>\n            anchor: [0.5, 41],<br \/>\n            anchorXUnits: &#171;fraction&#187;,<br \/>\n            anchorYUnits: &#171;pixels&#187;,<br \/>\n            opacity: 0.75,<br \/>\n            src: &#171;https:\/\/ptf.pajero4x4.ru\/wp-content\/plugins\/osm\/icons\/mic_blue_pinother_02.png&#187;<br \/>\n          })<br \/>\n      })],<\/p>\n<p>      &#171;LineString&#187;: [new ol.style.Style({<br \/>\n        stroke: new ol.style.Stroke({<br \/>\n          color: &#171;blue&#187;,<br \/>\n          width: 8<br \/>\n        })<br \/>\n      })],<br \/>\n      &#171;MultiLineString&#187;: [new ol.style.Style({<br \/>\n        stroke: new ol.style.Stroke({<br \/>\n          color: &#171;blue&#187;,<br \/>\n          width: 4<br \/>\n        })<br \/>\n      })]<br \/>\n    };<br \/>\n\t\t  vectorL0 = new ol.layer.Vector({<\/p>\n<p>\t\t\tsource: new ol.source.Vector({<br \/>\n\t\t  url:&#187;\/ptf\/ptf.kml&#187;,<br \/>\n\t\t\t  format: new ol.format.KML({ showPointNames: false})<br \/>\n\t\t\t}),<br \/>\n         zIndex: 92<br \/>\n\t\t  });map_ol3js_2.addLayer(vectorL0);addControls2Map(map_ol3js_2,0,0,3,0,5,6,7,0,1);<br \/>\nosm_addPopupClickhandler(map_ol3js_2,  &#171;map_ol3js_2&#187;);<br \/>\nosm_addMouseHover(map_ol3js_2); <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1,45],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-1","category-45","odd"],"_links":{"self":[{"href":"https:\/\/ptf.pajero4x4.ru\/index.php?rest_route=\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ptf.pajero4x4.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ptf.pajero4x4.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ptf.pajero4x4.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ptf.pajero4x4.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=307"}],"version-history":[{"count":17,"href":"https:\/\/ptf.pajero4x4.ru\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions"}],"predecessor-version":[{"id":9656,"href":"https:\/\/ptf.pajero4x4.ru\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions\/9656"}],"wp:attachment":[{"href":"https:\/\/ptf.pajero4x4.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ptf.pajero4x4.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ptf.pajero4x4.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}