Michigan Lodging - 420 Friendly Booking (2024)

',multimarker: [],containerID: '',panorama: null,ibTimeout: null,mapOptions: {center: { lat: 0, lng: 0},zoom: 3, streetViewControl: true,draggable: true,scrollwheel: false, fullscreenControl: false},params: {name: '',enableAutoFit: false,enableClustering: false,enableGeolocation: false,customIB: true,externalInfoWindow: true,streetview: false,radius: 100,i18n: [],},initialize: function(containerID, mapMarkers, options, params){MAP.markers = $.extend( MAP.markers, mapMarkers );MAP.mapOptions = $.extend( MAP.mapOptions, options );//correct starting latitude and longitude options from 0,0 to values from Header Map Element to use as starting position the position defined inside elementif( typeof params.address !== "undefined" ){MAP.mapOptions.center.lat = parseFloat(params.address.latitude);MAP.mapOptions.center.lng = parseFloat(params.address.longitude);}MAP.params = $.extend( MAP.params, params );MAP.clusterer = new MarkerClusterer();MAP.bounds = new google.maps.LatLngBounds();MAP.containerID = containerID;MAP.setCustomOptions();var mapContainer = $("#" + containerID + "-container").get(0);MAP.mapContainer = mapContainer;//decide if standard map or streetview will be displayedif (MAP.params.streetview) {var pov = {heading: parseInt(MAP.params.swheading),pitch: parseInt(MAP.params.swpitch),zoom: parseInt(MAP.params.swzoom),};MAP.map = new google.maps.StreetViewPanorama(mapContainer, MAP.mapOptions);MAP.map.setPosition(new google.maps.LatLng(MAP.params.address.latitude, MAP.params.address.longitude));MAP.map.setPov(pov);}else{MAP.map = new google.maps.Map(mapContainer, MAP.mapOptions);}// create global variable (if doesn't exist)// make sure you are using unique name - there might be another map already stored// store only map with defined name parameterif (typeof globals.globalMaps === "undefined") {globals.globalMaps = {};}MAP.initMarkers(MAP.markers);if ( MAP.params.enableClustering) {MAP.initClusterer();};if ( MAP.params.enableGeolocation ) {MAP.setGeolocation();} else if( MAP.params.enableAutoFit ) {MAP.autoFit();}/*if (MAP.params.streetview) {MAP.enableStreetview();}*/if (MAP.params.name !== "") {globals.globalMaps[MAP.params.name] = MAP;}},initMarkers: function(markers){for (var i in markers) {var marker = markers[i];if ( typeof type !== 'undefined' && marker.type !== type) {continue;}var location = new google.maps.LatLng(marker.lat, marker.lng);MAP.bounds.extend(location);MAP.locations.push(location);var newMarker = MAP.placeMarker(marker);MAP.placedMarkers.push(newMarker);}},placeMarker: function(marker){if (marker.icon) {var icon = {url: marker.icon,};} else {var icon = "";}var marker = new google.maps.Marker({position: new google.maps.LatLng(marker.lat, marker.lng),map: MAP.map,icon: icon,title: marker.title,context: marker.context,type: marker.type,id: marker.id,data: marker.data,});//hotfix// markers without title will not open infowindow (e.g. geolocation pin)if (typeof marker.title !== "undefined") {MAP.customInfoWindow(marker);}marker.addListener('click', function() {//do not do panTo() function if streetviewif( MAP.params.streetview ) return;MAP.map.panTo(marker.getPosition());});return marker;},customInfoWindow: function(marker){//if marker is Geolocation position pin, do not create infoboxif(marker.type === undefined) return;var boxText = document.createElement("div");boxText.className = 'infobox-content';var content = marker.context;boxText.innerHTML = content;var myOptions = {content: boxText,disableAutoPan: false,closeBoxURL: ait.paths.img + "/infobox_close.png",pixelOffset: new google.maps.Size(-145, -200),};var ib = new InfoBox(myOptions);marker.addListener('click', function() {if (MAP.currentInfoWindow) {MAP.currentInfoWindow.close();}MAP.currentInfoWindow = ib;ib.open(MAP.map, marker);});google.maps.event.addListener(ib, 'domready', function() {var content = ib.getContent()jQuery(content).find('.review-stars-container .review-stars').raty({font: true,readOnly:true,halfShow:true,starHalf:'fa-star-half-o',starOff:'fa-star-o',starOn:'fa-star',score: function() {return jQuery(this).attr('data-score');},});})return ib;},autoFit: function(){//do not do autofit for streetview mapif( MAP.params.streetview ) return;if (!MAP.bounds.isEmpty()) {MAP.map.fitBounds(MAP.bounds); MAP.map.panToBounds(MAP.bounds);var listener = google.maps.event.addListener(MAP.map, "idle", function() {if (MAP.map.getZoom() > MAP.mapOptions.zoom) {MAP.map.setZoom(MAP.mapOptions.zoom);}google.maps.event.removeListener(listener);});} else {MAP.map.setCenter(MAP.mapOptions.center);}},setGeolocation: function(){//do not do geolocation for streetview mapif( MAP.params.streetview ) return;var lat,lon,tmp = [];window.location.search//.replace ( "?", "" )// this is better, there might be a question mark inside.substr(1).split("&").forEach(function (item) {tmp = item.split("=");if (tmp[0] === 'lat'){lat = decodeURIComponent(tmp[1]);}if (tmp[0] === 'lon'){lon = decodeURIComponent(tmp[1]);}});if(typeof lat != 'undefined' & typeof lon != 'undefined' && lat != '' && lon != '') {var pos = new google.maps.LatLng(lat, lon);MAP.placeMarker({lat: lat,lng: lon,icon: ait.paths.img +'/pins/geoloc_pin.png',});MAP.map.setCenter(pos);if(MAP.params.radius === false) {MAP.map.setZoom(MAP.mapOptions.zoom);} else {MAP.map.setZoom(Math.round(14-Math.log(MAP.params.radius)/Math.LN2));}var radiusOptions = {strokeColor: '#005BB7',strokeOpacity: 0.8,strokeWeight: 2,fillColor: '#008BB2',fillOpacity: 0.35,map: MAP.map,center: pos,radius: MAP.params.radius * 1000,};var radiusCircle = new google.maps.Circle(radiusOptions);} else if(navigator.geolocation) {// Try HTML5 geolocationnavigator.geolocation.getCurrentPosition(function(position) {var pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);MAP.placeMarker({lat: position.coords.latitude,lng: position.coords.longitude,icon: ait.paths.img +'/pins/geoloc_pin.png',});MAP.map.setCenter(pos);if(MAP.params.radius === false) {MAP.map.setZoom(MAP.mapOptions.zoom);} else {MAP.map.setZoom(Math.round(14-Math.log(MAP.params.radius)/Math.LN2));}var radiusOptions = {strokeColor: '#005BB7',strokeOpacity: 0.8,strokeWeight: 2,fillColor: '#008BB2',fillOpacity: 0.35,map: MAP.map,center: pos,radius: MAP.params.radius * 1000,};var radiusCircle = new google.maps.Circle(radiusOptions);}, function() {MAP.handleNoGeolocation(true);});} else {// Browser doesn't support GeolocationMAP.handleNoGeolocation(false);}},handleNoGeolocation: function(errorFlag){var content = 'Geolocation failed';if (errorFlag) {if (typeof MAP.params.i18n.error_geolocation_failed !== 'undefined') {content = MAP.params.i18n.error_geolocation_failed;}} else {if (typeof MAP.params.i18n.error_geolocation_unsupported !== 'undefined') {content = MAP.params.i18n.error_geolocation_unsupported;}}MAP.map.setZoom(MAP.mapOptions.zoom);MAP.map.setCenter(MAP.mapOptions.center);alert(content);},initClusterer: function(){//do not use clusterer for streetview mapif( MAP.params.streetview ) return;var mcOptions = {gridSize: 50,enableRetinaIcons: true,ignoreHidden: true,styles: [{url: ait.paths.img +'/pins/clusters/cluster1.png',text: '+',height: 50,width: 50,// anchor: [3, 0],textColor: '#666',textSize: 10// text: ''}, {url: ait.paths.img +'/pins/clusters/cluster2.png',height: 60,width: 60,// anchor: [6, 0],text: '+',textColor: '#666',textSize: 11// text: '',}, {url: ait.paths.img +'/pins/clusters/cluster3.png',text: '+',width: 66,height: 66,// anchor: [8, 0],textColor: '#666',textSize: 12}]};if (typeof MAP.params.clusterRadius !== "undefined") {mcOptions.gridSize = MAP.params.clusterRadius;}MAP.clusterer.clearMarkers();var mc = new MarkerClusterer(MAP.map, MAP.placedMarkers, mcOptions);mc.setCalculator(function(markers) {var count = markers.length;for (var i = markers.length - 1; i >= 0; i--) {if (markers[i].isMulti) {count = count + markers[i].count -1;}// markers[i]};var index = 0;var dv = count;while (dv !== 0) {dv = parseInt(dv / 10, 10);index++;}index = Math.min(index);return {text: count,index: index};});MAP.clusterer = mc;},placeMultimarker: function(position, type, context1, context2, id1, id2, title1, title2){var $multiInfoBox = jQuery('

');$multiInfoBox.append(context1);$multiInfoBox.append(context2);var option1 = jQuery('

');var option2 = jQuery('

');$multiInfoBox.find('select').append(option1);$multiInfoBox.find('select').append(option2);var context = $multiInfoBox.wrap('

').parent().html();var icon = ait.paths.img + "/pins/multi_pin.png";var marker = new google.maps.Marker({position: position,map: MAP.map,icon: icon,// title: marker.title,context: context,isMulti: true,type: type,count: 2,});google.maps.event.addListener(marker, 'click', function(event) {if (MAP.currentInfoWindow) {MAP.currentInfoWindow.close();}MAP.map.panTo(marker.getPosition());MAP.currentInfoWindow = MAP.customInfoWindow(marker);});return marker;},appendToMultimarker: function(index, context, id, title){var $multiInfoBox = jQuery.parseHTML(MAP.placedMarkers[index].context);$multiInfoBox = jQuery($multiInfoBox).append(context);var $select = $multiInfoBox.find('select');var option = jQuery('

');$select.append(option);var result = $multiInfoBox.wrap('

').parent().html();MAP.placedMarkers[index].context = result;MAP.placedMarkers[index].count ++;},setCustomOptions: function(){if (typeof MAP.params.typeId !== "undefined") {MAP.mapOptions.mapTypeId = google.maps.MapTypeId[MAP.params.typeId];}MAP.mapOptions.mapTypeControlOptions = { position: google.maps.ControlPosition.LEFT_BOTTOM, style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, };MAP.mapOptions.streetViewControlOptions = { position: google.maps.ControlPosition.RIGHT_BOTTOM, }; MAP.mapOptions.zoomControlOptions = { position: google.maps.ControlPosition.RIGHT_BOTTOM, };},/*enableStreetview: function(){MAP.panorama = MAP.map.getStreetView();MAP.panorama.setPosition(new google.maps.LatLng(MAP.params.address.latitude, MAP.params.address.longitude));var pov = {heading: parseInt(MAP.params.swheading),pitch: parseInt(MAP.params.swpitch),zoom: parseInt(MAP.params.swzoom),};MAP.panorama.setPov(pov);MAP.panorama.setVisible(true);},*/clear: function(){for (var i in MAP.placedMarkers) {var marker = MAP.placedMarkers[i];marker.setMap(null);}MAP.placedMarkers = [];MAP.locations = [];MAP.clusterer.clearMarkers();},});$window.load(function(){google.maps.event.addDomListener(window, 'load', MAP.initialize("elm-header-map-3", [], {"styles":[{"stylers":[{"hue":""},{"saturation":"20"},{"lightness":"0"}]},{"featureType":"landscape","stylers":[{"visibility":"on"},{"hue":""},{"saturation":""},{"lightness":""}]},{"featureType":"administrative","stylers":[{"visibility":"on"},{"hue":""},{"saturation":""},{"lightness":""}]},{"featureType":"road","stylers":[{"visibility":"on"},{"hue":""},{"saturation":""},{"lightness":""}]},{"featureType":"water","stylers":[{"visibility":"on"},{"hue":"#c6e8eb"},{"saturation":"-70"},{"lightness":"-1"}]},{"featureType":"poi","stylers":[{"visibility":"on"},{"hue":""},{"saturation":""},{"lightness":""}]}],"zoom":12}, {"name":"headerMap","enableAutoFit":true,"enableClustering":true,"typeId":"HYBRID","clusterRadius":100,"enableGeolocation":false,"radius":false,"streetview":false,"address":{"address":"","latitude":"1","longitude":"1","streetview":"0","swheading":"90","swpitch":"5","swzoom":"1"},"swheading":"","swpitch":"","swzoom":"","externalInfoWindow":false,"i18n":{"error_geolocation_failed":"This page has been blocked from tracking your location","error_geolocation_unsupported":"Your browser doesn't support geolocation"}} ));});})(jQuery, jQuery(window), jQuery(document), this);

Michigan Lodging - 420 Friendly Booking (2024)
Top Articles
Cookie Clicker Math Playground
Where To Find Permit Validation Number
Overton Funeral Home Waterloo Iowa
Top Scorers Transfermarkt
Delectable Birthday Dyes
Kent And Pelczar Obituaries
Evita Role Wsj Crossword Clue
Day Octopus | Hawaii Marine Life
Inside California's brutal underground market for puppies: Neglected dogs, deceived owners, big profits
Syracuse Jr High Home Page
Red Devil 9664D Snowblower Manual
FDA Approves Arcutis’ ZORYVE® (roflumilast) Topical Foam, 0.3% for the Treatment of Seborrheic Dermatitis in Individuals Aged 9 Years and Older - Arcutis Biotherapeutics
Forest Biome
1973 Coupe Comparo: HQ GTS 350 + XA Falcon GT + VH Charger E55 + Leyland Force 7V
Red8 Data Entry Job
Regal Amc Near Me
Chamberlain College of Nursing | Tuition & Acceptance Rates 2024
Kimoriiii Fansly
Geico Car Insurance Review 2024
Cona Physical Therapy
Times Narcos Lied To You About What Really Happened - Grunge
John Deere 44 Snowblower Parts Manual
Plasma Donation Racine Wi
Pdx Weather Noaa
Angel del Villar Net Worth | Wife
Dtlr On 87Th Cottage Grove
Basil Martusevich
How To Make Infinity On Calculator
Most popular Indian web series of 2022 (so far) as per IMDb: Rocket Boys, Panchayat, Mai in top 10
CARLY Thank You Notes
Orangetheory Northville Michigan
Reborn Rich Ep 12 Eng Sub
The Boogeyman Showtimes Near Surf Cinemas
Tirage Rapid Georgia
Pensacola Cars Craigslist
Pp503063
Nsav Investorshub
Express Employment Sign In
Let's co-sleep on it: How I became the mom I swore I'd never be
Wilson Tattoo Shops
Updates on removal of DePaul encampment | Press Releases | News | Newsroom
Lacy Soto Mechanic
1Exquisitetaste
Tripadvisor Vancouver Restaurants
21 Alive Weather Team
Tom Kha Gai Soup Near Me
Rubmaps H
O'reilly's On Marbach
Sj Craigs
Download Twitter Video (X), Photo, GIF - Twitter Downloader
Guidance | GreenStar™ 3 2630 Display
Primary Care in Nashville & Southern KY | Tristar Medical Group
Latest Posts
Article information

Author: Edmund Hettinger DC

Last Updated:

Views: 6096

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Edmund Hettinger DC

Birthday: 1994-08-17

Address: 2033 Gerhold Pine, Port Jocelyn, VA 12101-5654

Phone: +8524399971620

Job: Central Manufacturing Supervisor

Hobby: Jogging, Metalworking, Tai chi, Shopping, Puzzles, Rock climbing, Crocheting

Introduction: My name is Edmund Hettinger DC, I am a adventurous, colorful, gifted, determined, precious, open, colorful person who loves writing and wants to share my knowledge and understanding with you.