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
0831a24c
Commit
0831a24c
authored
Jul 23, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
43e5ab3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
ZJFriendTrackMapViewController.m
...i/Classes/Map/Controller/ZJFriendTrackMapViewController.m
+13
-13
No files found.
ZhiJi/Classes/Map/Controller/ZJFriendTrackMapViewController.m
View file @
0831a24c
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
@property
(
nonatomic
,
strong
)
GMSMapView
*
m
apView
;
@property
(
nonatomic
,
strong
)
GMSMapView
*
GGM
apView
;
@property
(
nonatomic
,
strong
)
GMSCircle
*
selfCircle
;
@property
(
nonatomic
,
strong
)
GMSCircle
*
selfCircle
;
@property
(
nonatomic
,
strong
)
GMSMarker
*
selfMarker
;
@property
(
nonatomic
,
strong
)
GMSMarker
*
selfMarker
;
@property
(
nonatomic
,
assign
)
float
__block
zoom
;
@property
(
nonatomic
,
assign
)
float
__block
zoom
;
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
CLLocationCoordinate2D
coord
=
CLLocationCoordinate2DMake
(
model
.
latitude
,
model
.
longitude
);
CLLocationCoordinate2D
coord
=
CLLocationCoordinate2DMake
(
model
.
latitude
,
model
.
longitude
);
if
(
self
.
refershMyself
)
{
if
(
self
.
refershMyself
)
{
self
.
m
apView
.
camera
=
[
GMSCameraPosition
cameraWithTarget
:
coord
zoom
:
self
.
zoom
];
self
.
GGM
apView
.
camera
=
[
GMSCameraPosition
cameraWithTarget
:
coord
zoom
:
self
.
zoom
];
self
.
refershMyself
=
NO
;
self
.
refershMyself
=
NO
;
}
}
...
@@ -184,15 +184,15 @@
...
@@ -184,15 +184,15 @@
///初始化地图
///初始化地图
// self.mapView = [[MAMapView alloc] initWithFrame:self.view.bounds];
// self.mapView = [[MAMapView alloc] initWithFrame:self.view.bounds];
self
.
m
apView
=
[
GMSMapView
mapWithFrame
:
self
.
view
.
bounds
camera
:
camera
];
self
.
GGM
apView
=
[
GMSMapView
mapWithFrame
:
self
.
view
.
bounds
camera
:
camera
];
_
m
apView
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
_
GGM
apView
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
///把地图添加至view
///把地图添加至view
[
self
.
view
addSubview
:
_
m
apView
];
[
self
.
view
addSubview
:
_
GGM
apView
];
///如果您需要进入地图就显示定位小蓝点,则需要下面两行代码
///如果您需要进入地图就显示定位小蓝点,则需要下面两行代码
// _mapView.showsUserLocation = false;
// _mapView.showsUserLocation = false;
_
m
apView
.
delegate
=
self
;
_
GGM
apView
.
delegate
=
self
;
// _mapView.zoomLevel = 14;
// _mapView.zoomLevel = 14;
// _mapView.showsScale = false;
// _mapView.showsScale = false;
// _mapView.showsCompass = false;
// _mapView.showsCompass = false;
...
@@ -241,15 +241,15 @@
...
@@ -241,15 +241,15 @@
_selfMarker
.
title
=
@"Me"
;
_selfMarker
.
title
=
@"Me"
;
_selfMarker
.
snippet
=
@"WTF"
;
_selfMarker
.
snippet
=
@"WTF"
;
_selfMarker
.
infoWindowAnchor
=
CGPointMake
(
0
.
5
,
0
.
25
);
_selfMarker
.
infoWindowAnchor
=
CGPointMake
(
0
.
5
,
0
.
25
);
_selfMarker
.
map
=
_
m
apView
;
_selfMarker
.
map
=
_
GGM
apView
;
CLLocationDistance
distance
=
100
;
CLLocationDistance
distance
=
100
;
self
.
selfCircle
.
map
=
nil
;
_
selfCircle
.
map
=
nil
;
self
.
selfCircle
=
[
GMSCircle
circleWithPosition
:
position
radius
:
distance
];
_
selfCircle
=
[
GMSCircle
circleWithPosition
:
position
radius
:
distance
];
self
.
selfCircle
.
fillColor
=
[
kColorWithRGBA
(
86
,
142
,
252
,
0
.
15
)
colorWithAlphaComponent
:
0
.
5
];
_
selfCircle
.
fillColor
=
[
kColorWithRGBA
(
86
,
142
,
252
,
0
.
15
)
colorWithAlphaComponent
:
0
.
5
];
self
.
selfCircle
.
strokeColor
=
[
kColorWithRGBA
(
86
,
142
,
252
,
0
.
6
)
colorWithAlphaComponent
:
0
.
5
];
_
selfCircle
.
strokeColor
=
[
kColorWithRGBA
(
86
,
142
,
252
,
0
.
6
)
colorWithAlphaComponent
:
0
.
5
];
self
.
selfCircle
.
strokeWidth
=
1
.
0
;
_
selfCircle
.
strokeWidth
=
1
.
0
;
self
.
selfCircle
.
map
=
self
.
m
apView
;
_selfCircle
.
map
=
_GGM
apView
;
}
else
{
}
else
{
CLLocationCoordinate2D
position
=
point
;
CLLocationCoordinate2D
position
=
point
;
...
...
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