Skip to content

Directions

function initMap() { var center = {lat: 45.482280, lng: -74.304710}; var locations = [ ['Supa Vapes
\ 533 Chem. J.-René-Gauthier, Rigaud, QC J0P 1P0
\ Get Directions', 45.482280, -74.304710], ['Supa Vapes
\ 1502 Main St E, Hawkesbury, ON K6A 1C7
\ Get Directions', 45.606271, -74.590498], ['Supa Vapes
\ 1729 Walkley Rd Unit 4, Ottawa, ON K1V 6P4
\ Get Directions', 45.367520, -75.636210] ]; var map = new google.maps.Map(document.getElementById('map'), { zoom: 9, center: center }); var infowindow = new google.maps.InfoWindow({}); var marker, count; for (count = 0; count < locations.length; count++) { marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[count][1], locations[count][2]), map: map, title: locations[count][0] }); google.maps.event.addListener(marker, 'click', (function (marker, count) { return function () { infowindow.setContent(locations[count][0]); infowindow.open(map, marker); } })(marker, count)); } }