6300 Zug
Tel. 041 711 23 18
', 'iconImage': 'https://kinderaerztezug.ch/wp-content/uploads/2018/09/pin-sg.svg', 'iconSize': [31, 46], }, 'geometry': { 'type': 'Point', 'coordinates': [8.5161432,47.1704807], }, },]};markers.features.forEach(function(marker){var el = document.createElement("div");el.className = "marker";el.style.backgroundImage = "url(" + marker.properties.iconImage + ")";el.style.width = marker.properties.iconSize[0] + "px";el.style.height = marker.properties.iconSize[1] + "px";el.addEventListener("click",function(){map_1435816826.flyTo({center: [marker.geometry.coordinates[0],marker.geometry.coordinates[1]],offset: [0,150],speed: .2,curve: 0,});});var additionalOffset = 5,markerWidth = marker.properties.iconSize[0],markerHeight = marker.properties.iconSize[1],markerRadius = marker.properties.iconSize[1]/2,linearOffset = marker.properties.iconSize[0]/2;var popupOffsets = {"top": [0, additionalOffset],"top-left": [0, additionalOffset],"top-right": [0, additionalOffset],"bottom": [0, -markerHeight - additionalOffset],"bottom-left": [linearOffset, ((markerHeight - markerRadius + linearOffset) * -1) - additionalOffset * 2],"bottom-right": [-linearOffset, ((markerHeight - markerRadius + linearOffset) * -1) - additionalOffset * 2],"left": [markerRadius, (markerHeight - markerRadius) * -1],"right": [-markerRadius, (markerHeight - markerRadius) * -1]};var popup = new mapboxgl.Popup({offset: popupOffsets,className: marker.properties.className,closeButton: false,}).setHTML(marker.properties.text);new mapboxgl.Marker(el,{offset:[0,marker.properties.iconSize[1]/-2]}).setLngLat(marker.geometry.coordinates).setPopup(popup).addTo(map_1435816826);});$("#map_1435816826 .loader").remove();});};