[Abbreviated] android learn high German map drawn using the color texture track

[Overview] high moral map api api has drawn a line drawn monochrome, the texture is to achieve what?

[High] De api address https://lbs.amap.com/api/android-sdk/guide/draw-on-map/draw-polyline

【achieve】:

① monochrome lines:

aMap.addPolyline(new PolylineOptions().
                    addAll(latLngs).width(10).color(Color.argb(255, 1, 1, 1)));

② Texture Line:

drawableSource :  

aMap.addPolyline(new PolylineOptions()
.setCustomTexture
(BitmapDescriptorFactory.fromResource(R.drawable.blue_lines))

 

Published 44 original articles · won praise 21 · views 30000 +

Guess you like

Origin blog.csdn.net/gzyh_tech/article/details/82731918