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
1e430fe9
Commit
1e430fe9
authored
Mar 21, 2019
by
放牛的园子
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '3-marker-icon-view' into 'wangqb_dev'
修复问题marker坐标不在屏幕内的时候全部集中在左上角的问题 See merge request
!3
parents
e398c156
cf0be5d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
AMapMarker.m
lib/ios/AMap3D/maps/AMapMarker.m
+7
-2
No files found.
lib/ios/AMap3D/maps/AMapMarker.m
View file @
1e430fe9
...
...
@@ -135,7 +135,7 @@
_annotationView
.
draggable
=
_draggable
;
_annotationView
.
customCalloutView
=
_calloutView
;
//设置中心点
if
(
_centerOffset
.
x
==
0
&&
_centerOffset
.
y
==
0
)
if
(
_centerOffset
.
x
==
0
&&
_centerOffset
.
y
==
0
&&
_customView
)
{
CGPoint
point
=
CGPointMake
(
0
,
-
_customView
.
bounds
.
size
.
height
/
2
);
_annotationView
.
centerOffset
=
point
;
...
...
@@ -161,7 +161,12 @@
_annotationView
.
customCalloutView
=
_calloutView
;
}
else
{
_customView
=
subview
;
_customView
.
hidden
=
YES
;
_annotationView
=
[[
MAAnnotationView
alloc
]
initWithAnnotation
:
_annotation
reuseIdentifier
:
nil
];
_annotationView
.
bounds
=
_customView
.
bounds
;
[
_annotationView
addSubview
:
_customView
];
[
_annotationView
addGestureRecognizer
:[
[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
_handleTap
:)]];
//_customView.hidden = YES;
}
}
...
...
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