简体   繁体   中英

Draw line in mapbox android

I am developing an android application with Mapbox where I am supposed to mark the map based on some value received from the accelerometer. I was able to put marks like this

这

and this

这

I tried the line layer also but it is marking the complete area like this

这

Is there any other option to mark line only selected areas?

Sure, what you want to do is called "Draw a GeoJSON line".

Here is the link to the documentation: it should be easy to follow along.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM