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
b5dd20ca
Commit
b5dd20ca
authored
Jul 23, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0e962746
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
14 deletions
+31
-14
ZJFriendTrackMapViewController.m
...i/Classes/Map/Controller/ZJFriendTrackMapViewController.m
+31
-14
No files found.
ZhiJi/Classes/Map/Controller/ZJFriendTrackMapViewController.m
View file @
b5dd20ca
...
...
@@ -34,6 +34,7 @@
@property
(
nonatomic
,
strong
)
ZJAlertView
*
alertView
;
@property
(
nonatomic
,
assign
)
BOOL
refershMyself
;
@property
(
nonatomic
,
assign
)
ZJMapType
mapType
;
/********************/
@property
(
nonatomic
,
strong
)
MAMapView
*
GDMapView
;
...
...
@@ -167,26 +168,45 @@
}];
}
-
(
void
)
setMapType
:
(
ZJMapType
)
mapType
{
_mapType
=
mapType
;
if
(
_mapType
==
ZJ_GMSMapType
)
{
_GGMapView
.
hidden
=
NO
;
_GDMapView
.
hidden
=
YES
;
}
else
{
_GGMapView
.
hidden
=
YES
;
_GDMapView
.
hidden
=
NO
;
}
}
-
(
void
)
setupUI
{
_zoom
=
18
;
GMSCameraPosition
*
camera
=
[
GMSCameraPosition
cameraWithLatitude
:
+
40
.
75921100
longitude
:
-
73
.
98463800
zoom
:
_zoom
];
///初始化地图
// self.mapView = [[MAMapView alloc] initWithFrame:self.view.bounds];
self
.
GGMapView
=
[
GMSMapView
mapWithFrame
:
self
.
view
.
bounds
camera
:
camera
];
_GGMapView
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
///把地图添加至view
_GGMapView
.
delegate
=
self
;
[
self
.
view
addSubview
:
_GGMapView
];
_GGMapView
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
_GGMapView
.
hidden
=
YES
;
///如果您需要进入地图就显示定位小蓝点,则需要下面两行代码
// _mapView.showsUserLocation = false;
_GGMapView
.
delegate
=
self
;
// _mapView.zoomLevel = 14;
// _mapView.showsScale = false;
// _mapView.showsCompass = false;
self
.
GDMapView
=
[[
MAMapView
alloc
]
initWithFrame
:
self
.
view
.
bounds
];
_GDMapView
.
delegate
=
self
;
_GDMapView
.
zoomLevel
=
14
;
_GDMapView
.
showsScale
=
false
;
_GDMapView
.
showsCompass
=
false
;
//如果您需要进入地图就显示定位小蓝点,则需要下面两行代码
_GDMapView
.
showsUserLocation
=
false
;
[
self
.
view
addSubview
:
_GDMapView
];
_GDMapView
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
_GDMapView
.
hidden
=
YES
;
self
.
track
=
[[
MAAnimatedAnnotation
alloc
]
init
];
self
.
track
.
title
=
@"pointReuseIndetifier1"
;
[
_GDMapView
addAnnotation
:
self
.
track
];
// 添加 card view
self
.
trackTimeView
=
[[[
NSBundle
mainBundle
]
loadNibNamed
:
@"ZJUserTrackTimeView"
owner
:
self
options
:
nil
]
lastObject
];
...
...
@@ -215,9 +235,6 @@
weakSelf
.
endDate
=
endDate
;
};
// self.track = [[MAAnimatedAnnotation alloc] init];
// self.track.title = @"pointReuseIndetifier1";
// [self.mapView addAnnotation:self.track];
}
-
(
ZJAlertView
*
)
getAlertView
:
(
NSString
*
)
title
subtitle
:
(
NSString
*
)
subtitle
leftButtonTitle
:
(
NSString
*
)
leftButtonTitle
rightButtonTitle
:
(
NSString
*
)
rightButtonTitle
{
...
...
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