{"id":3367,"date":"2022-08-19T03:33:06","date_gmt":"2022-08-19T01:33:06","guid":{"rendered":"https:\/\/doctorshousesozopol.com\/location\/"},"modified":"2023-02-02T08:02:59","modified_gmt":"2023-02-02T06:02:59","slug":"location","status":"publish","type":"page","link":"https:\/\/doctorshousesozopol.com\/en\/location\/","title":{"rendered":"Location"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row full_width=&#8221;stretch_row_content_no_spaces&#8221;][vc_column]\n                \n        <style>\n        #map-canvas-62T4r {\n            border: 1px solid #f2f2f2;\n            border-radius: 2px;\n            width: 100%;\n            height: 700px;\n        }\n\n        <\/style>\n\n        \n        <script>\n        jQuery(document).ready(function ($) {\n           jQuery(function($) {\n\n                function initialize() {\n                    var map;\n                    var panorama;\n                    var latitude = 42.4261859;\n                    var longitude = 27.6961992;\n                    var pin = 'https:\/\/doctorshousesozopol.com\/wp-content\/uploads\/2018\/07\/pin.png';\n\n                    \/\/Map pin-window details\n                    var title = \"Doctor's House\";\n                    var hotel_name = \"Doctor's House\";\n                    var hotel_address = \"35 Morski skali str. , 8130 Sozopol, Bulgaria\";\n                    var hotel_desc = \"The Sea is for Real and Happiness Exist\";\n\n                    var hotel_location = new google.maps.LatLng(latitude, longitude);\n                    var mapOptions = {\n                        center: hotel_location,\n                        zoom: 11,\n                        scrollwheel: false,\n                        streetViewControl: false\n                    };\n                    map = new google.maps.Map(document.getElementById('map-canvas-62T4r'),\n                        mapOptions);\n                    var contentString =\n                        '<div id=\"infowindow_content\">' +\n                        '<p><strong>' + hotel_name + '<\/strong><br>' +\n                        hotel_address + '<br>' +\n                        hotel_desc + '<\/p>' +\n                        '<\/div>';\n\n                    var var_infowindow = new google.maps.InfoWindow({\n                        content: contentString\n                    });\n\n                    var marker = new google.maps.Marker({\n                        position: hotel_location,\n                        map: map,\n                        icon: pin,\n                        title: title,\n                        maxWidth: 100,\n                        optimized: false,\n                    });\n                    google.maps.event.addListener(marker, 'click', function () {\n                        var_infowindow.open(map, marker);\n                    });\n                    panorama = map.getStreetView();\n                    panorama.setPosition(hotel_location);\n                    panorama.setPov( \/** @type {google.maps.StreetViewPov} *\/ ({\n                        heading: 265,\n                        pitch: 0\n                    }));\n\n                    var openStreet = document.getElementById('openStreetView');\n                    if (openStreet) {\n                        document.getElementById(\"openStreetView\").onclick = function () {\n                            toggleStreetView()\n                        };\n                    }\n\n                    function toggleStreetView() {\n                        var toggle = panorama.getVisible();\n                        if (toggle == false) {\n                            panorama.setVisible(true);\n                        } else {\n                            panorama.setVisible(false);\n                        }\n                    }\n                }\n\n                \/\/Check if google map div exist\n                if ($(\"#map-canvas-62T4r\").length){\n                    addEventListener(\"load\", initialize, false);\n                }\n\n                });\n                });\n\n                <\/script>\n\n                \n                <div class=\"google-map\">\n                                    <div class=\"toggle-streetview\" id=\"openStreetView\"><i class=\"fa fa-street-view\" aria-hidden=\"true\"><\/i><\/div>\n                                    <div id=\"map-canvas-62T4r\"><\/div>\n                <\/div>\n\n\n        [\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row_content_no_spaces&#8221;][vc_column][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-3367","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/doctorshousesozopol.com\/en\/wp-json\/wp\/v2\/pages\/3367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doctorshousesozopol.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doctorshousesozopol.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doctorshousesozopol.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doctorshousesozopol.com\/en\/wp-json\/wp\/v2\/comments?post=3367"}],"version-history":[{"count":0,"href":"https:\/\/doctorshousesozopol.com\/en\/wp-json\/wp\/v2\/pages\/3367\/revisions"}],"wp:attachment":[{"href":"https:\/\/doctorshousesozopol.com\/en\/wp-json\/wp\/v2\/media?parent=3367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}