Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Z
ZhiJi-Overseas
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
ZhiJi-Overseas
Commits
4b678bff
Commit
4b678bff
authored
Jul 12, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
b5aee91b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
ZJFriendTrackMapViewController.m
...i/Classes/Map/Controller/ZJFriendTrackMapViewController.m
+11
-8
No files found.
ZhiJi/Classes/Map/Controller/ZJFriendTrackMapViewController.m
View file @
4b678bff
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment