简体   繁体   中英

osmdroid draw polygon on map

I want to draw something like this: gooogle maps example
but using osmdroid with OpenStreetMaps.
I have a set of GPS points prepared but I cannot find ay working example
Has anyone done this?

PathOverlay will not do the job properly: it has been optimized for drawing lines, and this is causing issues when using it for filled polygons (when the polygon is partly inside the view, and partly outside).

You can use the OSMBonusPack Polgon overlay.

A PathOverlay will give you the polygon. You may have to extend PathOverlay to create the fill color.

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