سؤال

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

هل كانت مفيدة؟

المحلول

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:
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top