1

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

1 Answers1

0

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

Magnas
  • 3,832
  • 5
  • 33
  • 48