Commit af526788bfeb38a97f6d8e6cc62602f41d61a455
1 parent
31b0b234
新增marker默认图标
Showing
2 changed files
with
2 additions
and
2 deletions
lib/android/src/main/java/cn/feewee/amap3d/map_view/Marker.kt
@@ -15,7 +15,7 @@ import cn.feewee.amap3d.fetchImage | @@ -15,7 +15,7 @@ import cn.feewee.amap3d.fetchImage | ||
15 | 15 | ||
16 | class Marker(context: Context) : ReactViewGroup(context), Overlay { | 16 | class Marker(context: Context) : ReactViewGroup(context), Overlay { |
17 | private var view: View? = null | 17 | private var view: View? = null |
18 | - private var icon: BitmapDescriptor? = null | 18 | + private var icon: BitmapDescriptor? = BitmapDescriptorFactory.fromResource(R.drawable.cqfw_amap_location) |
19 | private var anchorX: Float = 0.5f | 19 | private var anchorX: Float = 0.5f |
20 | private var anchorY: Float = 1f | 20 | private var anchorY: Float = 1f |
21 | var marker: Marker? = null | 21 | var marker: Marker? = null |
package.json
1 | { | 1 | { |
2 | "name": "@cqfw/react-native-amap3d", | 2 | "name": "@cqfw/react-native-amap3d", |
3 | - "version": "0.1.0", | 3 | + "version": "0.1.1", |
4 | "description": "react-native 高德地图组件,支持 Android + iOS", | 4 | "description": "react-native 高德地图组件,支持 Android + iOS", |
5 | "author": "feewee", | 5 | "author": "feewee", |
6 | "license": "MIT", | 6 | "license": "MIT", |