{ "version": 3, "sources": ["../src/js/map-styles.js", "../src/js/contact-map.js"], "sourcesContent": ["export const mapStyles = [\n\t{\n\t\telementType: 'geometry',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#212121',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\telementType: 'labels.icon',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tvisibility: 'off',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\telementType: 'labels.text.fill',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#757575',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\telementType: 'labels.text.stroke',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#212121',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'administrative',\n\t\telementType: 'geometry',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#757575',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'administrative.country',\n\t\telementType: 'labels.text.fill',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#9e9e9e',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'administrative.land_parcel',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tvisibility: 'off',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'administrative.locality',\n\t\telementType: 'labels.text.fill',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#bdbdbd',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'poi',\n\t\telementType: 'labels.text.fill',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#757575',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'poi.business',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tvisibility: 'off',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'poi.park',\n\t\telementType: 'geometry',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#181818',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'poi.park',\n\t\telementType: 'labels.text',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tvisibility: 'off',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'poi.park',\n\t\telementType: 'labels.text.fill',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#616161',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'poi.park',\n\t\telementType: 'labels.text.stroke',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#1b1b1b',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'road',\n\t\telementType: 'geometry.fill',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#2c2c2c',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'road',\n\t\telementType: 'labels.text.fill',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#8a8a8a',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'road.arterial',\n\t\telementType: 'geometry',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#373737',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'road.highway',\n\t\telementType: 'geometry',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#3c3c3c',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'road.highway.controlled_access',\n\t\telementType: 'geometry',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#4e4e4e',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'road.local',\n\t\telementType: 'labels.text.fill',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#616161',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'transit',\n\t\telementType: 'labels.text.fill',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#757575',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'water',\n\t\telementType: 'geometry',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#000000',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tfeatureType: 'water',\n\t\telementType: 'labels.text.fill',\n\t\tstylers: [\n\t\t\t{\n\t\t\t\tcolor: '#3d3d3d',\n\t\t\t},\n\t\t],\n\t},\n]\n", "import { mapStyles } from './map-styles'\n\n// window.initMap = initMap\ngoogle.maps.event.addDomListener(window, 'load', initMap)\nfunction initMap() {\n\t// Styles a map in night mode.\n\tlet zoomLevel\n\tif (window.innerWidth >= 1200) {\n\t\tzoomLevel = 15\n\t} else if (window.innerWidth >= 767) {\n\t\tzoomLevel = 13\n\t} else {\n\t\tzoomLevel = 13\n\t}\n\n\tconst map = new google.maps.Map(document.getElementById('map'), {\n\t\tcenter: { lat: 47.6582712, lng: -117.4389882 },\n\t\tzoom: zoomLevel,\n\t\tstreetViewControl: false,\n\t\tmapTypeControl: false,\n\t\tfullscreenControl: false,\n\t\tstyles: mapStyles,\n\t})\n\n\t// map.setOptions({draggable: false, zoomControl: false, scrollwheel: false, disableDoubleClickZoom: true});\n\tmap.setOptions({ scrollwheel: false })\n\n\tconst image = {\n\t\turl: '/wp-content/themes/Ultra/images/map-marker.svg',\n\t\t// This marker is 20 pixels wide by 32 pixels high.\n\t\tsize: new google.maps.Size(66, 66),\n\t\t// The origin for this image is (0, 0).\n\t\torigin: new google.maps.Point(0, 0),\n\t\t// The anchor for this image is the base of the flagpole at (0, 32).\n\t\tanchor: new google.maps.Point(26, 66),\n\t}\n\n\tconst marker = new google.maps.Marker({\n\t\tposition: { lat: 47.6582712, lng: -117.4219882 },\n\t\tmap,\n\t\ticon: image,\n\t\ttitle: 'Material Icon Font Marker',\n\t})\n\n\tconst contentString =\n\t\t'
' +\n\t\t'827 W 2nd Ave
Spokane, WA 99201
' +\n\t\t'
'\n\n\tconst infowindow = new google.maps.InfoWindow({\n\t\tcontent: contentString,\n\t})\n\tmarker.addListener('click', () => {\n\t\tinfowindow.open({\n\t\t\tanchor: marker,\n\t\t\tmap,\n\t\t\tshouldFocus: false,\n\t\t})\n\t})\n}\n// })\n"], "mappings": "MAAO,GAAM,GAAY,CACxB,CACC,YAAa,WACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,cACb,QAAS,CACR,CACC,WAAY,SAIf,CACC,YAAa,mBACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,qBACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,iBACb,YAAa,WACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,yBACb,YAAa,mBACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,6BACb,QAAS,CACR,CACC,WAAY,SAIf,CACC,YAAa,0BACb,YAAa,mBACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,MACb,YAAa,mBACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,eACb,QAAS,CACR,CACC,WAAY,SAIf,CACC,YAAa,WACb,YAAa,WACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,WACb,YAAa,cACb,QAAS,CACR,CACC,WAAY,SAIf,CACC,YAAa,WACb,YAAa,mBACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,WACb,YAAa,qBACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,OACb,YAAa,gBACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,OACb,YAAa,mBACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,gBACb,YAAa,WACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,eACb,YAAa,WACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,iCACb,YAAa,WACb,QAAS,CACR,CACC,MAAO,aAIV,CACC,YAAa,aACb,YAAa,mBACb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