当用户放大或缩小某些距离时,我正在尝试更改地图和地图上事物的某些属性。如何做到这一点?我努力了:
func mapView(_ mapView: MGLMapView, didChange mode: MGLUserTrackingMode, animated: Bool) {
print(mode, "This is the mode")
print(mapView.centerCoordinate, "This is the map view ")
}
但是当我四处走动时,这似乎没有在方法内部打印任何内容。