Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-amap3d
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-amap3d
Commits
e398c156
Commit
e398c156
authored
Dec 17, 2018
by
放牛的园子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整仅仅在有centerOffset值的时候,使用默认0,0,其他时候采用自动计算下边框中点
parent
bbc2c158
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
AMapMarker.m
lib/ios/AMap3D/maps/AMapMarker.m
+8
-2
No files found.
lib/ios/AMap3D/maps/AMapMarker.m
View file @
e398c156
...
...
@@ -135,8 +135,14 @@
_annotationView
.
draggable
=
_draggable
;
_annotationView
.
customCalloutView
=
_calloutView
;
//设置中心点
CGPoint
point
=
CGPointMake
(
0
,
-
_customView
.
bounds
.
size
.
height
/
2
);
_annotationView
.
centerOffset
=
point
;
if
(
_centerOffset
.
x
==
0
&&
_centerOffset
.
y
==
0
)
{
CGPoint
point
=
CGPointMake
(
0
,
-
_customView
.
bounds
.
size
.
height
/
2
);
_annotationView
.
centerOffset
=
point
;
}
else
{
_annotationView
.
centerOffset
=
CGPointMake
(
0
,
0
);
}
if
(
_zIndex
)
{
_annotationView
.
zIndex
=
_zIndex
;
}
...
...
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