Creaturing custom maps is an essential skill for plumbers looking to provide better services to their customers.
Google My Maps offers a range of tools and features that make it easy to create custom maps. In this article, we will explore how to use Google My Maps to create maps specifically tailored to plumbers in Melbourne.
const mapCenter = { lat: 37.7853, lng: -114.0739 }; const mapOptions = { zoom: 12, center: mapCenter }; // Create a custom map with a title and markers for plumbing services in Melbourne const myMap = google.maps.Map(document.getElementById("google-my-maps-container"), mapOptions); const marker1 = new google.maps.Marker({ position: { lat: 37.7909, lng: -115.1396 }, title: 'Flush Toilet', icon: 'https://img.shields.io/badge/flush-toilet-blue.svg?style=flat' }); const marker2 = new google.maps.Marker({ position: { lat: 37.7874, lng: -114.0699 }, title: 'Drain Unblocker', icon: 'https://img.shields.io/badge/drain-unblocker-red.svg?style=flat' }); // Add a circle to indicate the plumbing services' boundaries const boundary = new google.maps.Circle({ center: mapCenter, radius: 0.5, strokeColor: '#8b9467', strokeOpacity: 1, strokeWeight: 2, fillColor: '#808080', fillStyle: 'solid' }); myMap.setOptions({ boundedBy: boundary }); // Add a text label to the map to provide more information about each plumbing service const infoWindow = new google.maps.InfoWindow({ content: ` Flush Toilet - A professional flush toilet installation and maintenance.https://www.google.com/maps/d/viewer?mid=1IhY9c-SoCjRBZM5_t0Wxne4LLfzdf-dT