Commit 3f87d5e2 authored by 放牛的园子's avatar 放牛的园子

fix 初始化

parent 25120cc6
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment