Thursday, December 31, 2009

Re: [android-developers] show information after click on overlay

how i can popup the information (text or image). Must i
implement a transparent panel and then show the information in that
panel?

Yes. Create the layout / view you want to display as a popup then add it to the mapview with a set of MapView.LayoutParameters that specify the coordinates to add it to (in your case, the lat / lon coordinate you want to display).

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


On Wed, Dec 30, 2009 at 8:55 AM, Stefan <DahmenStefan1@gmx.de> wrote:
Hello,

i work on two map based application, where i can save important points
with text or image (first software). In the second software i want to
draw overlays on the map with the important points (draw a bitmap,
works fine).
So i try to develop a overlay class. What kind of overlay is the best
solution and how can i show the information (text and image).
I try to solve my problem with ItemizedOverlay and the onTap()
function. I get the correct index if i click on one bitmap. But i dont
know, how i can popup the information (text or image). Must i
implement a transparent panel and then show the information in that
panel? i dont want to see only a Toast. The user should decide himself
when he wants to close the information.
What i want is something similar to the google maps application: If i
click in the map, a popup shows the latitude/longitude or the
streetname.

Thanks in advance,
Stefan

--
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

--
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