How to draw at the current GPS location on MapView using MyLocationOverlay?

后端 未结 1 858
予麋鹿
予麋鹿 2021-01-07 10:36

I\'m trying to draw a custom gps-location icon. I\'m using MapView and have created a class MyLocationArrow that extends MyLocationOverlay.

I override <

相关标签:
1条回答
  • 2021-01-07 11:35

    You can use

    android.graphics.Point toPixels(GeoPoint in,
                                    android.graphics.Point out)
    

    Converts the given GeoPoint to onscreen pixel coordinates, relative to the top-left of the MapView that provided this Projection.

    .

    0 讨论(0)
提交回复
热议问题