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
b3bb3058
Commit
b3bb3058
authored
Nov 02, 2018
by
codingman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了移动动画最后定格帧,计算中心点位置修改
parent
2b481e32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
AMapMarker.m
lib/ios/AMap3D/maps/AMapMarker.m
+7
-3
AMapSmoothMoveMarker.m
lib/ios/AMap3D/maps/AMapSmoothMoveMarker.m
+6
-2
No files found.
lib/ios/AMap3D/maps/AMapMarker.m
View file @
b3bb3058
...
...
@@ -85,6 +85,10 @@
});
}
-
(
void
)
layoutSubviews
{
NSLog
(
@"CustomSubview layoutSubviews"
);
}
-
(
void
)
setInfoWindowDisabled
:
(
BOOL
)
disabled
{
_canShowCallout
=
!
disabled
;
_annotationView
.
canShowCallout
=
!
disabled
;
...
...
@@ -130,12 +134,12 @@
_annotationView
.
canShowCallout
=
_canShowCallout
;
_annotationView
.
draggable
=
_draggable
;
_annotationView
.
customCalloutView
=
_calloutView
;
_annotationView
.
centerOffset
=
_centerOffset
;
//设置中心点
CGPoint
point
=
CGPointMake
(
0
,
-
_customView
.
bounds
.
size
.
height
/
2
);
_annotationView
.
centerOffset
=
point
;
if
(
_zIndex
)
{
_annotationView
.
zIndex
=
_zIndex
;
}
if
(
_image
!=
nil
)
{
_annotationView
.
image
=
_image
;
}
...
...
lib/ios/AMap3D/maps/AMapSmoothMoveMarker.m
View file @
b3bb3058
...
...
@@ -53,7 +53,9 @@
_annotation
.
coordinate
=
coords
[
0
];
_annotation
.
title
=
@"I can fly!"
;
if
(
_annotationView
!=
nil
)
{
[
_annotation
addMoveAnimationWithKeyCoordinates
:
coords
count
:
coordinates
.
count
withDuration
:
_duration
withName
:
nil
completeCallback
:^
(
BOOL
isFinished
)
{
}];
[
_annotation
addMoveAnimationWithKeyCoordinates
:
coords
count
:
coordinates
.
count
-
1
withDuration
:
_duration
withName
:
nil
completeCallback
:^
(
BOOL
isFinished
)
{
}];
}
}
...
...
@@ -111,7 +113,9 @@
for
(
NSUInteger
i
=
0
;
i
<
_coordinates
.
count
;
i
++
)
{
coords
[
i
]
=
_coordinates
[
i
].
coordinate
;
}
[
_annotation
addMoveAnimationWithKeyCoordinates
:
coords
count
:
_coordinates
.
count
withDuration
:
_duration
withName
:
nil
completeCallback
:^
(
BOOL
isFinished
)
{
}];
[
_annotation
addMoveAnimationWithKeyCoordinates
:
coords
count
:
_coordinates
.
count
-
1
withDuration
:
_duration
withName
:
nil
completeCallback
:^
(
BOOL
isFinished
)
{
}];
[
self
setActive
:
_active
];
}
return
_annotationView
;
...
...
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