North indicator / bitmap at fixed screen position? #929
-
I wand to add a north indicator to the map, being displayed in top-left corner. The icon shall rotate according to map rotation, but otherwise stay fixed at that position. I'm able to position a marker at a certain geo position using an Is there a way to detect the geo location for a fixed screen position (e. g. at 10% map view width from left / 10% map view height from top), taken map rotation into account? Then I could update the marker's geo location. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hm, could probably answer this myself: Create a view on top of the map view, no map layer necessary... (Sometimes you need to write things down to get the right idea... Putting an |
Beta Was this translation helpful? Give feedback.
-
The proper way to do such external additions (as you found) |
Beta Was this translation helpful? Give feedback.
-
Hey guys, I'm trying to do the same, the item is already in place, but how I rotate it? What is the event from the map I need to listen ? I tried the map events to the the rotate_event but it only triggers when I rotate the map manually, when I rotate by code, nothing is triggered. Can you help me on this? Thanks |
Beta Was this translation helpful? Give feedback.
Hm, could probably answer this myself: Create a view on top of the map view, no map layer necessary...
(Sometimes you need to write things down to get the right idea... Putting an
ImageView
on top of the mapView does work like a charm.)