简体   繁体   中英

How to customise the callout view in map view

How to show the customise callouts in the map view? If we tap the pin its show like in this in image https://i.stack.imgur.com/b57Cy.png

Using GoogleMaps SDK: Depends upon the use case that you're trying to achieve. If only a single marker can be selected, then you can use the marker markerInfoWindow to show a custom view on the selected marker.

Otherwise, If multiple markers could be shown as depicted in the image, then use GMSMarker iconView property and use different views for different states. Hope this helps!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM