Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
react-native-amap-sdk
Project
Project
Details
Activity
Releases
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
wind.wang
react-native-amap-sdk
Commits
9c13e4d1
Commit
9c13e4d1
authored
Mar 20, 2019
by
wind.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix kotlin check
parent
106eed06
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
AMapUtils.kt
...damap/src/main/java/cn/qiuxiang/react/amap3d/AMapUtils.kt
+1
-1
AMapMultiPoint.kt
...main/java/cn/qiuxiang/react/amap3d/maps/AMapMultiPoint.kt
+1
-1
AMapView.kt
...p/src/main/java/cn/qiuxiang/react/amap3d/maps/AMapView.kt
+1
-1
No files found.
android/map3damap/src/main/java/cn/qiuxiang/react/amap3d/AMapUtils.kt
View file @
9c13e4d1
...
...
@@ -17,7 +17,7 @@ fun ReadableMap.toLatLng(): LatLng {
}
fun
ReadableArray
.
toLatLngList
():
ArrayList
<
LatLng
>
{
return
ArrayList
((
0
..
(
this
.
size
()
-
1
)).
map
{
this
.
getMap
(
it
).
toLatLng
()
})
return
ArrayList
((
0
..
(
this
.
size
()
-
1
)).
map
{
this
.
getMap
(
it
)
!!
.
toLatLng
()
})
}
fun
LatLng
.
toWritableMap
():
WritableMap
{
...
...
android/map3damap/src/main/java/cn/qiuxiang/react/amap3d/maps/AMapMultiPoint.kt
View file @
9c13e4d1
...
...
@@ -15,7 +15,7 @@ class AMapMultiPoint(context: Context) : ReactViewGroup(context), AMapOverlay {
fun
setPoints
(
points
:
ReadableArray
)
{
items
=
ArrayList
((
0
until
points
.
size
())
.
map
{
val
data
=
points
.
getMap
(
it
)
val
data
=
points
.
getMap
(
it
)
!!
val
item
=
MultiPointItem
(
data
.
toLatLng
())
if
(
data
.
hasKey
(
"title"
))
{
item
.
title
=
data
.
getString
(
"title"
)
...
...
android/map3damap/src/main/java/cn/qiuxiang/react/amap3d/maps/AMapView.kt
View file @
9c13e4d1
...
...
@@ -171,7 +171,7 @@ class AMapView(context: Context) : TextureMapView(context) {
var
rotation
=
currentCameraPosition
.
bearing
if
(
target
.
hasKey
(
"coordinate"
))
{
coordinate
=
target
.
getMap
(
"coordinate"
).
toLatLng
()
coordinate
=
target
.
getMap
(
"coordinate"
)
?
.
toLatLng
()
}
if
(
target
.
hasKey
(
"zoomLevel"
))
{
...
...
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