New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see New map style for Google Maps Platform.
Stay organized with collections
Save and categorize content based on your preferences.
When specific advanced marker properties are set, you can monitor marker events
such as taps and gestures.
If a marker is tapped, one can see additional information such as a marker title
or snippet. One can also move draggable markers using a long press gesture.
To set descriptive text for a marker, use the
GMSMarker.title property.
Respond to marker events
You can respond to marker events by adding
the GMSMapViewDelegate protocol to your view and
implementing the corresponding callback. This example identifies the title and
snippet for a selected marker.
When you enable the draggable property users can drag markers on the map with
a long press gesture. To make a marker draggable, set the GMSMarker.draggable
property to true.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-24 UTC."],[[["Google Maps SDK for iOS allows you to monitor marker events like taps and gestures, displaying information like title and snippet when tapped."],["You can enable marker dragging using a long press gesture by setting the `GMSMarker.draggable` property."],["Marker visibility can be controlled based on the map's zoom level using the `GMSMapViewDelegate` and setting the `GMSMarker.map` property conditionally."],["To respond to marker events and access details like title and snippet, implement the `GMSMapViewDelegate` protocol and its corresponding callback methods."]]],["Markers' events, like taps and gestures, can be monitored by adding `GMSMapViewDelegate`. Tapped markers reveal their title and snippet, set using `GMSMarker.title`. Markers can be made draggable with `GMSMarker.draggable`, allowing movement via long press. You can control marker visibility based on zoom level by setting `GMSMarker.map` within the `GMSMapViewDelegate` callback. Implementing the delegate protocol also allows for handling custom responses to specific marker interactions.\n"]]