Pradhi11 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Allow rotation of OverlayItems patch #488

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently there is a class called DirectedLocationOverlay. It is limiting in 
that the item positioning is done on the overlay itself (overlay.setLocation), 
so only one item can be positioned per overlay.

I suggest this class be abandoned in favor of the modified version of 
OverlayItem.java here: https://gist.github.com/daviddoria/46c4982a0688b32df90a

It allows an OverlayItem to be given a bearing. This way, multiple static and 
dynamic items can all be added to the same ItemizedOverlay, and the bearing of 
each item can be set individually.

Here is an example showing how to use this modified class:

https://gist.github.com/daviddoria/6f66fda5fdd19fe2d3ff

Original issue reported on code.google.com by daviddo...@gmail.com on 18 Oct 2013 at 4:32