user1945142
user1945142

Reputation: 21

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?

Upvotes: 0

Views: 3296

Answers (2)

MKer
MKer

Reputation: 3450

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.

Upvotes: 1

Richard
Richard

Reputation: 63

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

Upvotes: 0

Related Questions