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

no message

parent b5aee91b
...@@ -318,11 +318,11 @@ ...@@ -318,11 +318,11 @@
} }
// self.actionMarker.map = nil; self.actionMarker.map = nil;
// self.actionMarker = [GMSMarker markerWithPosition:startCoordinate]; self.actionMarker = [GMSMarker markerWithPosition:startCoordinate];
// self.actionMarker.icon = [UIImage imageNamed:@"map_track_move_icon"]; self.actionMarker.icon = [UIImage imageNamed:@"map_track_move_icon"];
// self.actionMarker.title = @"move"; self.actionMarker.title = @"move";
// self.actionMarker.map = self.mapView; self.actionMarker.map = self.mapView;
...@@ -345,16 +345,19 @@ ...@@ -345,16 +345,19 @@
self.actionPolyline = [GMSPolyline polylineWithPath:self.actionlinepath]; self.actionPolyline = [GMSPolyline polylineWithPath:self.actionlinepath];
self.actionPolyline.strokeColor = [UIColor greenColor]; self.actionPolyline.strokeColor = [UIColor greenColor];
self.actionPolyline.strokeWidth = 2; self.actionPolyline.strokeWidth = 2;
// [CATransaction begin]; [CATransaction begin];
// [CATransaction setAnimationDuration:0.1]; [CATransaction setAnimationDuration:0.3];
self.actionMarker.position = coordinate;
// self.actionMarker.rotation = location.course
self.actionPolyline.map = self.mapView; self.actionPolyline.map = self.mapView;
// [CATransaction commit]; [CATransaction commit];
self.count++; self.count++;
}else{ }else{
dispatch_source_cancel(timer); dispatch_source_cancel(timer);
} }
}); });
dispatch_resume(timer); dispatch_resume(timer);
} }
-(void)addMarkers:(GMSPath *)path{ -(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