Monday, March 5, 2012

Re: [android-developers] Dynamically-Drawn, Clickable Map Overlay?

On Sun, Mar 4, 2012 at 8:35 PM, PJ <pdisc1@umbc.edu> wrote:
Any thoughts on how to best implement this? The only information I've
found on overlays uses static files (Most overlays seem to be
just .PNG files for markers; one example had a route that was drawn
from an XML file). I'd need to calculate the arrow based on direction
to the destination (direction the arrow points) and the relative
distance to that location (arrow length), so the overlay is something
I'd have to come up with at run time.

Sounds like you need a custom Overlay. Extend the Overlay class and implement the appropriate methods, like onDraw, for example. 

I think the main challenge is drawing the clickable arrows, but
another question that comes to mind is, should I search using the
Google Maps API, or is this job more suited to the Google Places API?

Google it, research them both, see which is better - that's not related to this list.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate