初始化地图时,我在地图上添加了GMSMarker。当我移动时,GMSMarker也将与我一起移动,但是发现不起作用。如何更新GMSMarker的地理位置?
if (!self.es_routeMapCarMarker) {
self.es_routeMapCarMarker = [ESRouteMapCarMarker markerWithPosition:es_locationCoordinate2D];
self.es_routeMapCarMarker.map = self.cl_googleMapViewController.cl_mapView;
self.es_routeMapCarMarker.icon = [UIImage imageNamed:es_isTaxi ? @"map_taxi" : @"map_car"];
} else {
self.es_routeMapCarMarker.position = es_locationCoordinate2D;
}