Marker Customization

Learn how to customize a marker's image and add marker labels.

By default, a marker’s image is the Google Maps pushpin icon. However, we can customize the marker’s visual appearance by setting a custom image as the marker’s icon and adding text within a marker.

Markers with image icons

An image as a marker’s icon can be specified in place of the default Google Maps pushpin icon. To do this, we set the marker’s icon property to the URL of an image. The following is an example of a custom icon—an image of a mountain—that’s set for the marker:

Get hands-on with 1200+ tech skills courses.