当用户放大或缩小特定距离时,我正在尝试更改地图的某些属性以及地图上事物的某些属性。 如何实现?我尝试过:
func mapView(_ mapView: MGLMapView, didChange mode: MGLUserTrackingMode, animated: Bool) {
print(mode, "This is the mode")
print(mapView.centerCoordinate, "This is the map view ")
}
但是当我四处走动时,在方法内部似乎没有打印任何内容。
答案 0 :(得分:1)