简体   繁体   中英

Draw a Circular Red Marker with Mapbox Android SDK

Using the Mapbox Android SDK, what is the best way to create a red circle marker? I know how to do this using MarkerOptions() but that is now deprecated.

Thanks

What version of the Mapbox Android SDK are you using? If you're on the latest (which I'd strongly recommend!), your best bet would be to use the Annotation Plugin . There is a new manager class structure for different types of annotations. The CircleManager should allow you to do exactly what you're hoping to.

Here's an example you can use as you build.

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