{"id":3153,"date":"2020-10-09T16:08:22","date_gmt":"2020-10-09T14:08:22","guid":{"rendered":"http:\/\/an.hamilton.lv\/?p=3153"},"modified":"2020-10-10T12:36:41","modified_gmt":"2020-10-10T10:36:41","slug":"poseshhenie-gory-kamnej-i-novogo-vyhoda-na-trassu","status":"publish","type":"post","link":"http:\/\/an.hamilton.lv\/?p=3153","title":{"rendered":"\u041f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u0435 \u0433\u043e\u0440\u044b \u043a\u0430\u043c\u043d\u0435\u0439 \u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u0432\u044b\u0445\u043e\u0434\u0430 \u043d\u0430 \u0442\u0440\u0430\u0441\u0441\u0443"},"content":{"rendered":"<div class=\"leaflet-map WPLeafletMap\" style=\"height:350px; width:100%;\"><\/div><script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletMapShortcode() {\/*<script>*\/\nvar baseUrl = atob('aHR0cHM6Ly97c30udGlsZS5vcGVuc3RyZWV0bWFwLm9yZy97en0ve3h9L3t5fS5wbmc=');\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>; \\\\r\\\\n\\u00a9 <a href=\\\"http:\\\/\\\/www.openstreetmap.org\\\/copyright\\\">OpenStreetMap<\\\/a> contributors\"},\n    {});\nwindow.WPLeafletMapPlugin.createMap(options).setView([56.958631326094,23.959636688232],12);});<\/script>\n<script>\nwindow.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];\nwindow.WPLeafletMapPlugin.push(function WPLeafletgpxShortcode() {\/*<script>*\/\nvar src = 'gpx\/GPS_2020_10_08.gpx';\nvar default_style = {\"color\":\"red\"};\nvar rewrite_keys = {\n    stroke : 'color',\n    'stroke-width' : 'weight',\n    'stroke-opacity' : 'opacity',\n    fill : 'fillColor',\n    'fill-opacity' : 'fillOpacity',\n};\n\/\/ htmlspecialchars converts & to \"&amp;\"; maybe unnecessarily, and maybe 3x\nvar ampersandRegex = \/&(?:amp;){1,3}\/g\nvar layer = L.ajaxGeoJson(src.replace(ampersandRegex, '&'), {\n    type: 'gpx',\n    style : layerStyle,\n    onEachFeature : onEachFeature,\n    pointToLayer: pointToLayer\n});\nvar fitbounds = 0;\nvar circleMarker = 0;\nvar popup_text = window.WPLeafletMapPlugin.unescape(\"\");\nvar popup_property = \"\";\nvar table_view = 0;\nvar group = window.WPLeafletMapPlugin.getCurrentGroup();\nvar markerOptions = window.WPLeafletMapPlugin.getIconOptions({});\nlayer.addTo( group );\nwindow.WPLeafletMapPlugin.geojsons.push( layer );\nif (fitbounds) {\n    layer.on('ready', function () {\n        this.map.fitBounds( this.getBounds() );\n    });\n}\nfunction layerStyle (feature) {\n    var props = feature.properties || {};\n    var style = {};\n    function camelFun (_, first_letter) {\n        return first_letter.toUpperCase();\n    };\n    for (var key in props) {\n        if (key.match('-')) {\n            var camelcase = key.replace(\/-(\\w)\/, camelFun);\n            style[ camelcase ] = props[ key ];\n        }\n        \/\/ rewrite style keys from geojson.io\n        if (rewrite_keys[ key ]) {\n            style[ rewrite_keys[ key ] ] = props[ key ];\n        }\n    }\n    return L.Util.extend(style, default_style);\n}\nfunction onEachFeature (feature, layer) {\n    var props = feature.properties || {};\n    var text;\n    if (table_view) {\n        text = window.WPLeafletMapPlugin.propsToTable(props);\n    } else {\n        text = popup_property\n            ? props[ popup_property ]\n            : window.WPLeafletMapPlugin.template(\n                popup_text, \n                feature.properties\n            );\n    }\n    if (text) {\n        layer.bindPopup( text );\n    }\n}\n    function pointToLayer (feature, latlng) {\n    if (circleMarker) {\n        return L.circleMarker(latlng);\n    }\n    return L.marker(latlng, markerOptions);\n}});<\/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    [56.957331517945,23.947491645813],\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<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    [56.950217187791,23.944466114044],\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<p>&nbsp;<\/p>\n<div id='gallery-1' class='gallery galleryid-3153 gallery-columns-3 gallery-size-medium'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/an.hamilton.lv\/?attachment_id=3159'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"203\" src=\"http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_181716-300x203.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_181716-300x203.jpg 300w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_181716-1024x691.jpg 1024w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_181716-768x518.jpg 768w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_181716-1536x1037.jpg 1536w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_181716-2048x1382.jpg 2048w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_181716-178x120.jpg 178w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/an.hamilton.lv\/?attachment_id=3160'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_191011-300x225.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_191011-300x225.jpg 300w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_191011-1024x768.jpg 1024w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_191011-768x576.jpg 768w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_191011-1536x1152.jpg 1536w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_191011-2048x1536.jpg 2048w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201008_191011-160x120.jpg 160w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/an.hamilton.lv\/?attachment_id=3161'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201001_202027-300x225.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201001_202027-300x225.jpg 300w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201001_202027-1024x768.jpg 1024w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201001_202027-768x576.jpg 768w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201001_202027-1536x1152.jpg 1536w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201001_202027-2048x1536.jpg 2048w, http:\/\/an.hamilton.lv\/wp-content\/uploads\/2020\/10\/IMG_20201001_202027-160x120.jpg 160w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-3153","post","type-post","status-publish","format-standard","hentry","category-riga"],"_links":{"self":[{"href":"http:\/\/an.hamilton.lv\/index.php?rest_route=\/wp\/v2\/posts\/3153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/an.hamilton.lv\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/an.hamilton.lv\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/an.hamilton.lv\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/an.hamilton.lv\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3153"}],"version-history":[{"count":5,"href":"http:\/\/an.hamilton.lv\/index.php?rest_route=\/wp\/v2\/posts\/3153\/revisions"}],"predecessor-version":[{"id":3162,"href":"http:\/\/an.hamilton.lv\/index.php?rest_route=\/wp\/v2\/posts\/3153\/revisions\/3162"}],"wp:attachment":[{"href":"http:\/\/an.hamilton.lv\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/an.hamilton.lv\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3153"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/an.hamilton.lv\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}