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
3f87d5e2
Commit
3f87d5e2
authored
Nov 27, 2018
by
放牛的园子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 初始化
parent
25120cc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
AMapPathPolyline.kt
...in/java/cn/qiuxiang/react/amap3d/maps/AMapPathPolyline.kt
+6
-0
No files found.
lib/android/src/main/java/cn/qiuxiang/react/amap3d/maps/AMapPathPolyline.kt
View file @
3f87d5e2
...
...
@@ -26,6 +26,11 @@ class AMapPathPolyline(context: Context) : ReactViewGroup(context), AMapOverlay
//private var bitmapDescriptor1: BitmapDescriptor? = null
//private var bitmapDescriptor2: BitmapDescriptor? = null
var
imageName
:
String
=
""
set
(
value
){
field
=
value
}
var
width
:
Float
=
1f
set
(
value
)
{
field
=
value
...
...
@@ -68,6 +73,7 @@ class AMapPathPolyline(context: Context) : ReactViewGroup(context), AMapOverlay
}
fun
setImage
(
name
:
String
)
{
imageName
=
name
val
drawable
=
context
.
resources
.
getIdentifier
(
name
,
"drawable"
,
context
.
packageName
)
//val drawable1 = context.resources.getIdentifier("p16x16_1", "drawable", context.packageName)
//val drawable2 = context.resources.getIdentifier("p16x16_1", "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