Clicking buildings in Google Maps SDK iOS - 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.

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:

Related

Function for when map is interacted with

I was wondering if there is an inbuilt function that is called whenever a map box map is interacted with?
I’m wondering this because I want to have an image appear whenever the map is moved.
Thanks
Yes, you should use one of the MGLMapViewDelegate methods depending on your requirements:
-mapView:regionWillChangeAnimated:
-mapViewRegionIsChanging:
-mapView:regionDidChangeAnimated:
You can read about their implementation in the MapBox api reference here: Mapbox api

Using MKMapView with a custom MKOverlay. Can the local attractions that come with Apple Maps by default appear above the overlay layer?

I have an MKMapView with an MKOverlay on top, I'm wondering if its possible to have road names, place names, places of interest and everything like that, that comes by default with Apple Maps, can be displayed above my MKMapView so I don't have to add all this information manually as annotations. I know this is possible with the Google Maps API on Android so wasn't sure if I could do this with Apple Maps.
I've added an image that shows iOS versus Android to show what I am envisioning:
So, I've found a solution to this issue. If you're using the addOverlay: method in MKMapView, you can use:
[self.myMapView addOverlay:customOverlay level:MKOverlayLevelAboveRoads];
MKOverlayLevelAboveRoads means place labels including shields and point of interest icons are shown above your overlay.
MKOverlayLevelAboveLabels means your overlay will appear on top of everything (which i believe is the default based on my experiences).

Is it possible to change a route by dragging its polyline in a GMSMapView?

I'm currently working on an app using the latest version of the Google Maps SDK for iOS and I've been wondering if it's possible to achieve the same "drag and drop" feature available in the web version of Google Maps to get a custom route.
After completely reading the official documentation I still haven't found an answer or guidance related to this feature, so any help will be appreciated.
Enabling the drag and drop feature can be done by creating an instance of GMDraggableMarkerManager and sets itself as the delegate in order to be notified of drag events.
Steps given in google-maps-sdk-ios-drag-drop are as follows:
To initialize the drag & drop functionality you have to import
the GMDraggableMarkerManager.h in your UIViewController displaying
the map.
Create a property for the GMDraggableMarkerManager.
After the initialization of the Google Maps View you have to
initialize the draggableMarkerManager.
Please note that to fully implement drag and drop feature, a long press on the marker enables you to drag it around and set it to another position
This SO post -
How to implement GMSMarker drag drop on GMSMapView? might also help.

Define custom navigation paths in Google Maps

I am trying to implement something like Google's indoor maps feature, locally in my iOS app, using GroundOverlays. I could easily get the overlay part done by overlaying a .png image at some position in the map, using the API. I could also implement a custom floors switcher, just like Google's one, so it changes the floor overlay image. However, I still miss the ability to navigate in the native indoor maps. How can I define custom navigation paths in that region so when user navigates between two points inside it, the calculated path gets generated with respecting them?

Map Navigator for iOS

(I'm not a iOS dev, just need to know it for a concept) is it possible to have a navigation system the same like the maps app have it whitout leaving the my own map-app that uses the google maps inside. And will it be possible to use the turnbyturn navigation in iOS6 and the new Vector map inside of my own map-app?
You will have to use the official Maps app for turn-by-turn. You can draw paths on the MKMapView but would need to supply your own data.

Resources