Commit 4b678bff authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

no message

parent b5aee91b
......@@ -318,11 +318,11 @@
}
// self.actionMarker.map = nil;
// self.actionMarker = [GMSMarker markerWithPosition:startCoordinate];
// self.actionMarker.icon = [UIImage imageNamed:@"map_track_move_icon"];
// self.actionMarker.title = @"move";
// self.actionMarker.map = self.mapView;
self.actionMarker.map = nil;
self.actionMarker = [GMSMarker markerWithPosition:startCoordinate];
self.actionMarker.icon = [UIImage imageNamed:@"map_track_move_icon"];
self.actionMarker.title = @"move";
self.actionMarker.map = self.mapView;
......@@ -345,16 +345,19 @@
self.actionPolyline = [GMSPolyline polylineWithPath:self.actionlinepath];
self.actionPolyline.strokeColor = [UIColor greenColor];
self.actionPolyline.strokeWidth = 2;
// [CATransaction begin];
// [CATransaction setAnimationDuration:0.1];
[CATransaction begin];
[CATransaction setAnimationDuration:0.3];
self.actionMarker.position = coordinate;
// self.actionMarker.rotation = location.course
self.actionPolyline.map = self.mapView;
// [CATransaction commit];
[CATransaction commit];
self.count++;
}else{
dispatch_source_cancel(timer);
}
});
dispatch_resume(timer);
}
-(void)addMarkers:(GMSPath *)path{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment