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
25120cc6
Commit
25120cc6
authored
Nov 27, 2018
by
放牛的园子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改Android版本首次初始化路径贴图贴不上的问题
parent
3d1c59fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
AMapPathPolyline.kt
...in/java/cn/qiuxiang/react/amap3d/maps/AMapPathPolyline.kt
+3
-0
No files found.
lib/android/src/main/java/cn/qiuxiang/react/amap3d/maps/AMapPathPolyline.kt
View file @
25120cc6
...
...
@@ -77,6 +77,9 @@ class AMapPathPolyline(context: Context) : ReactViewGroup(context), AMapOverlay
}
override
fun
add
(
map
:
AMap
)
{
val
resource1
=
context
.
resources
.
getIdentifier
(
imageName
,
"drawable"
,
context
.
packageName
)
var
drawable1
=
BitmapDescriptorFactory
.
fromResource
(
resource1
)
bitmapDescriptor
=
drawable1
polyline
=
map
.
addPolyline
(
PolylineOptions
()
.
setCustomTexture
(
bitmapDescriptor
)
//.setCustomTextureIndex(listOf(0, 1, 2))
...
...
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