Skip to content Skip to sidebar Skip to footer

How To Draw At The Current Gps Location On Mapview Using Mylocationoverlay?

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 drawMyLocation() and draw a poi

Solution 1:

You can use

android.graphics.PointtoPixels(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.

.

Post a Comment for "How To Draw At The Current Gps Location On Mapview Using Mylocationoverlay?"