Mapview on tablet: How can I center the map with an offset?
Posted
by
Waza_Be
on Stack Overflow
See other posts from Stack Overflow
or by Waza_Be
Published on 2012-11-10T08:08:32Z
Indexed on
2013/06/26
22:22 UTC
Read the original article
Hit count: 145
Hint: Here is a similar post with HTML.
In the current tablet implementation of my app, I have a fullscreen MapView with some informations displayed in a RelativeLayout on a left panel, like this:
(My layout is quite trivial, and I guess there is no need to post it for readability)
The problem comes when I want to center the map on a specific point... If I use this code:
mapController.setCenter(point);
I will of course get the point in the center of the screen and not in the center of the empty area.
I have really no idea where I could start to turn the offset of the left panel into map coordinates...
Thanks a lot for any help or suggestion
© Stack Overflow or respective owner