{"id":2429,"date":"2018-11-14T14:40:28","date_gmt":"2018-11-14T12:40:28","guid":{"rendered":"http:\/\/ebroh.es\/puntos-de-venta\/"},"modified":"2023-04-27T11:09:13","modified_gmt":"2023-04-27T09:09:13","slug":"points-of-sale","status":"publish","type":"page","link":"https:\/\/ebroh.eu\/en\/points-of-sale\/","title":{"rendered":"Points of sale"},"content":{"rendered":"<p><div>     \n    <input id=\"pac-input\" class=\"controls\" type=\"text\" placeholder=\"Buscar...\">\n    <div class=\"container\" id=\"map-canvas\" style=\"height:400px;\"><\/div>\n<\/div>\n\n<div style=\"display:none\" id=\"wp_pkpo_content_19915\"><\/div>\n<script type=\"text\/javascript\">\n    var gmarkers = [];\n    var infoWindows = [];\n    \n    function initialize()\n    {\n        var lat_lng = {lat: 40.4637, lng: 3.7492};\n        var lat_lang_count = 0;\n        var default_zoom = 5;\n        var default_lat_settings = '39.8581';\n        var default_lang_settings = '-4.02263';\n\t\t\n                        default_zoom = 5        \n        if (default_lat_settings !== '' && default_lang_settings !== '')\n        {\n            map = new google.maps.Map(document.getElementById('map-canvas'), {\n                zoom: default_zoom,\n                center: new google.maps.LatLng(default_lat_settings, default_lang_settings),\n                mapTypeId: google.maps.MapTypeId.ROADMAP,\n                disableDefaultUI: true\n            });\n        }\n        else\n        {\n            map = new google.maps.Map(document.getElementById('map-canvas'), {\n                zoom: default_zoom,\n                center: lat_lng,\n                mapTypeId: google.maps.MapTypeId.ROADMAP,\n                disableDefaultUI: true\n            });\n        }\n          \n          \n        var searchBox = new google.maps.places.SearchBox(document.getElementById('pac-input'));\n        map.controls[google.maps.ControlPosition.TOP_CENTER].push(document.getElementById('pac-input'));\n        \n        google.maps.event.addListener(map, 'click', function() {\n            infowindow.close();\n        });\n\n        google.maps.event.addListener(searchBox, 'places_changed', function () {\n            searchBox.set('map', null);\n            var places = searchBox.getPlaces();\n\n            var bounds = new google.maps.LatLngBounds();\n            var i, place;\n            for (i = 0; place = places[i]; i++) {\n                (function (place) {\n                    var marker = new google.maps.Marker({\n                    });\n                    marker.bindTo('map', searchBox, 'map');\n                    google.maps.event.addListener(marker, 'map_changed', function () {\n                        if (!this.getMap()) {\n                            this.unbindAll();\n                        }\n                    });\n                    bounds.extend(place.geometry.location);\n\n\n                }(place));\n\n            }\n            map.fitBounds(bounds);\n            searchBox.set('map', map);\n            map.setZoom(Math.min(map.getZoom(), 12));\n\n        });\n\t\t\n\t\tjQuery(function() {\n                   var location_content = jQuery('#pl_19915 span.meta').html();\n                   var latLng = new google.maps.LatLng(48.14789830558269, 16.29756108310802);\n                   var contentString = '<div id=\"wp_pickup_map_content\" class=\"pickup_content iw-container\" point_name=\"BIKEMITE\" pick_id=\"19915\">' +\n                       '<div class=\"iw-title\">BIKEMITE<\/div>' +\n                       '<div class=\"iw-content\">' +\n                       '<div class=\"iw-subTitle\">'+location_content+'<\/div>' +\n                       '<\/div>' +\n                       '<div class=\"iw-bottom-gradient\"><\/div>' +\n                       '<\/div>';\n                    \n                    \n                  var infowindow = new google.maps.InfoWindow({\n                       maxWidth: 350\n                   });\n\n                   var marker = new google.maps.Marker({\n                       position: latLng,\n                       map: map\n                   });\n                   \n                   marker.setIcon('https:\/\/ebroh.eu\/wp-content\/plugins\/woocommerce-pickup-location\/assets\/images\/marker.png');\n                   \n                                                                       \n                   google.maps.event.addListener(infowindow, 'domready', function() {\n\n                       var iwOuter = jQuery('.gm-style-iw');\n\n                       var iwBackground = iwOuter.prev();\n\n                       iwBackground.children(':nth-child(2)').css({'display' : 'none'});\n\n                       iwBackground.children(':nth-child(4)').css({'display' : 'none'});\n\n                       iwBackground.children(':nth-child(3)').find('div').children().css({'box-shadow': 'rgba(72, 181, 233, 0.6) 0px 1px 6px', 'z-index' : '1'});\n\n                       var iwCloseBtn = iwOuter.next();\n\n                       jQuery('.gm-style-iw div:first-child').css('display','block');\n\n                       iwCloseBtn.css({opacity: '1', right: '38px', padding: '7px', top: '3px', border: '7px solid #48b5e9', 'border-radius': '13px', 'box-shadow': '0 0 5px #3990B9'});\n\n                       if(jQuery('.iw-content').height() < 140){\n                           jQuery('.iw-bottom-gradient').css({display: 'none'});\n                       }\n\n                       iwCloseBtn.mouseout(function(){\n                           jQuery(this).css({opacity: '1'});\n                       });\n                   });    \n\n                                                  \n                   bindInfoWindow(marker, map, infowindow, contentString,latLng);\n                   gmarkers.push(marker);\n                   infoWindows.push(infowindow);\n\t\t   lat_lang_count++;\n          \n            \t\t\n\t\t});\n    \n        if(lat_lang_count>0)\n        {\n            google.maps.event.addListener(marker, 'click', function() {\n                infowindow.open(map,marker);\n            });\n\n            google.maps.event.addListener(map, 'click', function() {\n                infowindow.close();\n            });\n\n        }\n         \n    }\n    \n    \n    function bindInfoWindow(marker, map, infowindow, html,latLng) {\n        marker.addListener('click', function () {\n            infowindow.setContent(html);\n            infowindow.open(map, this);\n            infowindow.setPosition(latLng);\n        });\n    }\n\ninitialize();\n<\/script><br \/>\n<div id=\"pickup_locations_list\"><p>Austria<\/p><ul><li id=\"pl_19915\">BIKEMITE<br><span class=\"meta\">Breitenfurter Stra\u00dfe 222<br>1230, Viena<br>68 01 23 11 69<\/span><\/li><\/ul><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2429","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ebroh.eu\/en\/wp-json\/wp\/v2\/pages\/2429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebroh.eu\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ebroh.eu\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ebroh.eu\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ebroh.eu\/en\/wp-json\/wp\/v2\/comments?post=2429"}],"version-history":[{"count":2,"href":"https:\/\/ebroh.eu\/en\/wp-json\/wp\/v2\/pages\/2429\/revisions"}],"predecessor-version":[{"id":2991,"href":"https:\/\/ebroh.eu\/en\/wp-json\/wp\/v2\/pages\/2429\/revisions\/2991"}],"wp:attachment":[{"href":"https:\/\/ebroh.eu\/en\/wp-json\/wp\/v2\/media?parent=2429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}