Want to add a touch of local expertise to your Google My Maps? In this article, we'll show you how to create and customize a map by adding the location of a Melbourne plumber.
var map = new google.maps.Map(document.getElementById('map'), { center: {lat: 37.7849, lng: -114.1245}, zoom: 12, overlays: [overlay] }); // Add a marker to the location var marker = new google.maps.Marker({ position: map.getCenter(), map: map, title: 'Melbourne Plumbers Association' }); // Add an icon for the overlay var icon = new google.maps.Icon({ contentUrl: 'municipalities.jpg', iconSize: [30, 30], iconStyle: {path: "M0 50h300v-150H0V50", strokeWeight: 3, strokeColor: "#FF0000"}, }); marker.setAccessoryIcon(icon); // Add a click event handler to the overlay button document.getElementById('overlay-button').addEventListener('click', function() { window.location.href = 'https://www.melbourneplumbertown.com'; });https://www.google.com/maps/d/viewer?mid=1yDVtj2DnTnAylICKIq0yuCRISsZU5Cxd