On Sat, Feb 13, 2010 at 5:47 AM, Mark Murphy <[email protected]>wrote:

> Getting it "exactly above the marker" may be difficult, as I am not sure
> how you can find out the pixel location of the marker.
>

1 - Use the mapview's Projection object to convert a geo-location to screen
coordinates
2 - Use you're overlay's marker's image height to find it's top
3 - Use the Projection again to covert that screen location back to
geo-locations
4 - Use MapView.LayoutParams to set your view's location to that specific
point, aligned by bottom-center

On Sat, Feb 13, 2010 at 8:26 AM, orang zelek <[email protected]> wrote:

> how to make a line on the map of a point to another point.


Overload one of the draw method of your overlay and use the Canvas to draw
lines.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to