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
36b22e3b
Commit
36b22e3b
authored
Jan 20, 2018
by
7c00
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #130
parent
aa8fcd64
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
build.gradle
android/build.gradle
+2
-2
AMapMarker.kt
...src/main/java/cn/qiuxiang/react/amap3d/maps/AMapMarker.kt
+2
-0
No files found.
android/build.gradle
View file @
36b22e3b
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply
plugin:
'kotlin-android'
buildscript
{
ext
.
kotlin_version
=
'1.2.0'
ext
.
kotlin_version
=
'1.2.
2
0'
repositories
{
jcenter
()
...
...
@@ -27,5 +27,5 @@ android {
dependencies
{
provided
'com.facebook.react:react-native:+'
compile
'com.amap.api:navi-3dmap:5.3.0_3dmap5.3.0'
compile
"org.jetbrains.kotlin:kotlin-stdlib-j
re
7:$kotlin_version"
compile
"org.jetbrains.kotlin:kotlin-stdlib-j
dk
7:$kotlin_version"
}
android/src/main/java/cn/qiuxiang/react/amap3d/maps/AMapMarker.kt
View file @
36b22e3b
...
...
@@ -135,6 +135,7 @@ class AMapMarker(context: Context) : ReactViewGroup(context), AMapOverlay {
fun
updateIcon
()
{
icon
?.
let
{
if
(
it
.
width
!=
0
&&
it
.
height
!=
0
)
{
val
bitmap
=
Bitmap
.
createBitmap
(
it
.
width
,
it
.
height
,
Bitmap
.
Config
.
ARGB_8888
)
it
.
draw
(
Canvas
(
bitmap
))
...
...
@@ -142,6 +143,7 @@ class AMapMarker(context: Context) : ReactViewGroup(context), AMapOverlay {
marker
?.
setIcon
(
bitmapDescriptor
)
}
}
}
fun
setImage
(
name
:
String
)
{
val
drawable
=
context
.
resources
.
getIdentifier
(
name
,
"drawable"
,
context
.
packageName
)
...
...
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