开发者

Change north/south orientation in Android MapView

开发者 https://www.devze.com 2023-02-14 08:27 出处:网络
I want to change the north/south orientation in a MapView based on two GeoPoints: One starting point will be the southmost point

I want to change the north/south orientation in a MapView based on two GeoPoints:

  • One starting point will be the southmost point
  • One ending point will be the northmost point

So if开发者_运维技巧 you would draw a line between the two points, this would be a straight line from south to north. Is there any way to align the map this way?


In case you haven't solved this yet, you can rotate the map however you'd like.

http://code.google.com/p/cameralert/wiki/RotateTouches

That contains the ability to rotate based on the compass sensor. For you I'd just set the rotation to 180 and remove the location sensor updates.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号