Right now my Android app uses an overlay to place a pin down from drawable. I want a ra开发者_如何学Pythonnge in there too just like Google maps has when it is locking on to your position. How do I get that? Do I have to do an overlay, or is it part of maps?
BTW I am not drawing my loction, but a specific geopoint
Yeah in the overlay class, in function
draw(Canvas canvas, MapView mapView, boolean shadow, long when)
You can use the canvas.drawCirlce() Of course is a bit more complicated than that, you will have to play around with the api's
Use
Projection projection = mapView.getProjection();
Point point = new Point();
projection.toPixels(geoPoint, point);
to map your geoPoint to the projection on the MapView.
精彩评论