Overlay buttons on Map

Put your problem here if it does not fit any of the other categories.

Overlay buttons on Map

Postby bluefloyd8 » Tue Mar 11, 2008 3:00 pm

I have figured out how to draw circles and other overlays over a map. Recently, I looked at the Map program which comes on the emulator and it makes menus (with buttons) overlay onto the map.

Does anyone know how they does these types of overlays?

Image
User avatar
bluefloyd8
Experienced Developer
Experienced Developer
 
Posts: 70
Joined: Tue Jan 22, 2008 3:57 am
Location: Indiana, USA

Top

Postby rahul_mawkins » Tue Mar 11, 2008 9:26 pm

basically I had a same problem but I guess we dont have any good way to place buttons on canvas
So what I did was add the buttons on map activity and then later draw a transparent box on overlay
rahul_mawkins
Developer
Developer
 
Posts: 34
Joined: Wed Feb 27, 2008 4:09 am

Postby bluefloyd8 » Thu Mar 13, 2008 10:39 pm

Theres got to be a way to do overlays like they did. Like how they have a placemark on the map and the a dialog box pops up ("California Pizza Kitchen" in the screen shot above).
User avatar
bluefloyd8
Experienced Developer
Experienced Developer
 
Posts: 70
Joined: Tue Jan 22, 2008 3:57 am
Location: Indiana, USA

Postby rahul_mawkins » Thu Mar 13, 2008 11:06 pm

if u see the pop up its just a rectangle with yah spoke that can be drawn
Also the text inside it is just canvas.drawText
Not the textview

If you fig out something better please do let me know here too

Thanks
RM
rahul_mawkins
Developer
Developer
 
Posts: 34
Joined: Wed Feb 27, 2008 4:09 am

Postby bluefloyd8 » Fri Mar 14, 2008 5:36 am

So they are using the map overlay class i guess.
http://code.google.com/android/referenc ... erlay.html

It would be nice if the source code for the Map application (which comes with android) is available.
User avatar
bluefloyd8
Experienced Developer
Experienced Developer
 
Posts: 70
Joined: Tue Jan 22, 2008 3:57 am
Location: Indiana, USA

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests