Search code examples
iosgoogle-mapsgoogle-maps-sdk-ios

Clicking buildings in Google Maps SDK iOS


How can I make these buildings respond to touch using the Google Map SDK? The points that define the edges of the building are clearly defined, so how can I access this data to determine if a touch has been made inside vs outside of the building.

enter image description here


Solution

  • You cannot do it directly, else you can create GMSOverlay around the area you want an action then can use the Google MapView delegate function

    mapView:didTapOverlay: