Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ !function(n){n.each(["frontend/element_ready/wd_open_street_map.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.wdOpenStreetMap()})}),woodmartThemeModule.wdOpenStreetMap=function(){if("undefined"!=typeof leaflet){const o=function(t,a){var e,r,t=t.attr("id"),o=a.hasOwnProperty("center")?a.center:null,i=a.hasOwnProperty("markers")?a.markers:[],t=(void 0!==L.DomUtil.get(t)&&L.DomUtil.get(t)&&(L.DomUtil.get(t)._leaflet_id=null),L.map(t,{scrollWheelZoom:a.hasOwnProperty("scrollWheelZoom")&&"yes"===a.scrollWheelZoom,zoomControl:a.hasOwnProperty("zoomControl")&&"yes"===a.zoomControl,dragging:a.hasOwnProperty("dragging")&&"yes"===a.dragging}));if(o&&t.setView(o.split(","),a.zoom),a.hasOwnProperty("geoapify_tile")&&"osm-carto"!==a.geoapify_tile&&("custom-tile"!==a.geoapify_tile||a.hasOwnProperty("geoapify_custom_tile")&&0!==a.geoapify_custom_tile.length)){if("stamen-toner"===a.geoapify_tile)L.tileLayer("https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}{r}.png",{attribution:'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.',maxZoom:18}).addTo(t);else if("stamen-terrain"===a.geoapify_tile)L.tileLayer("https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}{r}.png",{attribution:'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.',maxZoom:18}).addTo(t);else if("stamen-watercolor"===a.geoapify_tile)L.tileLayer("https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg",{attribution:'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.',maxZoom:18}).addTo(t);else if("custom-tile"===a.geoapify_tile&&a.hasOwnProperty("geoapify_custom_tile")&&0!==a.geoapify_custom_tile.length){let e=a.geoapify_custom_tile;e=e.replaceAll("$",""),L.tileLayer(e,{attribution:` ${a.osm_custom_attribution||null} | © OpenStreetMap contributors`,maxZoom:18}).addTo(t)}}else L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors',maxZoom:18}).addTo(t);(o=i)&&0
${this.marker.marker_title}
`),a+='
',this.marker.marker_description&&(a+=`
${this.marker.marker_description}
`),"yes"===this.marker.show_button&&this.marker.button_text&&(e=this.marker.hasOwnProperty("button_url_target")&&this.marker.button_url_target?this.marker.button_url_target:"_blank",a+=``),a+="
",this.marker.marker_title||this.marker.marker_description||this.marker.button_text&&this.marker.show_button)switch(this.marker.hasOwnProperty("marker_behavior")?this.marker.marker_behavior:null){case"popup":t.bindPopup(a);break;case"static_close_on":t.bindPopup(a,{closeOnClick:!1,autoClose:!1,closeOnEscapeKey:!1}).openPopup();break;case"static_close_off":t.bindPopup(a,{closeOnClick:!1,autoClose:!1,closeButton:!1,closeOnEscapeKey:!1}).openPopup();break;case"tooltip":t.bindTooltip(a,{})}}),setTimeout(function(){r.invalidateSize()},100)};n(".wd-osm-map-container").each(function(){let t=n(this),a=t.find(".wd-osm-map-wrapper"),r=a.data("settings");r&&(0t.offset().top&&(t.hasClass("wd-map-inited")||(t.addClass("wd-map-inited"),o(a,r)))}):r.hasOwnProperty("init_type")&&"interaction"===r.init_type?window.addEventListener("wdEventStarted",function(){t.hasClass("wd-map-inited")||(t.addClass("wd-map-inited"),o(a,r))}):o(a,r))})}},n(document).ready(function(){woodmartThemeModule.wdOpenStreetMap()})}(jQuery);