The Custom Google Map for Melbourne Plumbers

function initMap() { const map = new google.maps.Map(document.getElementById("google-map-container"), { center: {lat: 37.7749, lng: -113.8599}, zoom: 12, styles: [ { featureType: "water", style: "fill-color: green; fill-weight: 20!; border-radius: 5px" } ] }); // Add custom markers for Melbourne plumbers. const markers = []; for (let i=0;i<10;i++) { markers.push(new google.maps.Marker({ position: new google.maps.LatLng(37.7859 + Math.cos(i * 0.1), -113.8543 + Math.sin(i * 0.1)), map: map, title: `Plumber ${i+1}` })); } // Set the markers as hover listeners to display more information. for (let i=0;i${this.title}
${markers[i].getLatitude(), markers[i].getLongitude()} ` }); map.setCenter(this.getPosition()); this.setPosition(map.getCenter()); infoWindow.open(map, this); }.bind(this)); } } // Initialize the map when the document is ready. google.maps.event.addDomListener(document.body, 'DOMContentLoaded', initMap);

https://www.google.com/maps/d/viewer?mid=1QALBeNkfgmxPa79LfG1vCQpgYQQ5sVg-