Custom Map on Google My Maps for Emergency Plumbing Services in Melbourne

function createCustomMap() { // Get the existing location as a reference point var location = 'Melbourne, Australia'; // Create a new Google My Maps instance var myMap = new google.maps.Map(document.getElementById("googleMap"), { center: {lat: 37.7851, lng: -114.1201}, zoom: 12, styles: [ { featureType: 'water', elementType: 'geometry', stylers: [{color: '#000'}] } ] }); // Define a custom map type for emergency plumbing services myMap.setMapTypeId(google.maps.MapTypeId.ROADMAP | google.maps.MapTypeId.POLYGON); // Add markers to the map at specific locations addMarkers(myMap, location); } function addMarkers(map, location) { // Define the number of markers var numMarkers = 10; // Loop through each marker for (var i = 0; i 50 && lngDistance > -40) { return 'red'; } else { var dist = Math.sqrt(Math.pow(latRange[0] - latDistance, 2) + Math.pow(lngRange[1] - lngDistance, 2)); return dist <30 ? 'green' : dist> 100 ? 'yellow' : 'orange'; } } // Call the function to create a custom map createCustomMap();

https://www.google.com/maps/d/viewer?mid=1685rRvosbXxJsjswVn5UtparDK0YPaLU