Since nearly 2 weeks I'm playing with new cool feature allowing to present map and custom content over it… (even I though - I THOUGH that I found bug - sorry guys - my fault!)
There is thing I cannot resolve and I believe - it is not possible to do without extending (at least slightly!) API -
- I'm trying to draw something more complicated than an icon on map, not going into details - this is a dynamic drawing using BufferedBitmap
My assumption was - I'll convert geographic coordinates to screen coordinates using known top_left / bottom_right mapped to the screen… WRONG
- I have realized that top_left / bottom_right coordinates are NOT mapped to the extent of the screen, but additional border is added (unknown) - of course I am using setScreenVisibleArea to the full extent of screen (maybe if I'd map to smaller part - there would be no border added to map? I don't know… I'm already taking care of screen aspect ratio btw)
Above means - I don't know what border is added around top_left/bottom_right - therefore I won't be able to convert screen coordinates to geographic coordinates and place BufferedBitmap correctly on the screen.
What would help? Any from below -
1. Simplest - lets allow to read from MapMarker screen coordinates - that way I'd be able to map screen coordinates to geographic coordinates (by even placing a single pixel)
2. Add any function to do the mapping of coordinates (maybe that would be even simpler?)
3. Extend MapMaker to accept not only icon but BufferedBitmap :) - I know, that could be little too much
I don't know is such feature would be found useful for the others… I - personally - would love to have it…
OR maybe - there is a way to do the mapping?
Thanks guys!