#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    34
    Rep Power
    3

    Android Maps API v2 - approaches to marker rotation


    Hi there,

    We're porting an app from the v1 Maps API to the v2 API, and having trouble with markers.

    We need markers that point in a specific geographic direction. In V1, we could build the bitmap pointing in the right direction at draw time, but in V2 the marker bitmap can't be changed.

    I'm not sure if the best approach is to destroy and re-build all our markers when the map is rotated (which sounds like a performance problem), or to try drawing them all ourselves. That could be via a TileOverlay or via a view of our own that we sat on top of the map.

    I don't really like any of these approaches. Has anyone tried any of them ?
  2. #2
  3. No Profile Picture
    Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    21
    Rep Power
    0
    Try this link.might be it will help you.: http://stackoverflow.com/questions/14235336/android-maps-api-v2-approaches-to-marker-rotation
    Last edited by hiker; January 11th, 2013 at 02:28 PM. Reason: removed fake sig
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    34
    Rep Power
    3
    Thanks

IMN logo majestic logo threadwatch logo seochat tools logo