Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有一个内置函数在与地图框地图交互时调用?
我想知道这一点,因为我希望在移动地图时出现图像。
谢谢
是的,您应该根据您的要求使用其中一种 MGLMapViewDelegate 方法:
-mapView:regionWillChangeAnimated: -mapViewRegionIsChanging: -mapView:regionDidChangeAnimated:
您可以在此处的 MapBox api 参考中阅读它们的实现:Mapbox api