How to show some location as overlay in map.

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

How to show some location as overlay in map.

Postby ranjandeo » Thu Jul 29, 2010 8:06 am

Hello Friends,

I have a list of places with longitude and latitude values.
I want to show those places in map with place name as the overlay item.
How can I add my own view as overlay.

Any idea and help would be highly appreciated.

Thank You.
Ranjan Deo
User avatar
ranjandeo
Experienced Developer
Experienced Developer
 
Posts: 84
Joined: Mon May 31, 2010 6:20 am
Location: Kolkata, India

Top

Re: How to show some location as overlay in map.

Postby jonbonazza » Thu Jul 29, 2010 1:33 pm

You need to use an itemized overlay with a textview as the overlay item.
jonbonazza
Master Developer
Master Developer
 
Posts: 665
Joined: Thu Jul 15, 2010 2:58 pm
Location: WV USA

Re: How to show some location as overlay in map.

Postby ranjandeo » Thu Jul 29, 2010 1:43 pm

jonbonazza wrote:You need to use an itemized overlay with a textview as the overlay item.


Thanks for reply.

Can you please tell me how I can use a TextView in ItemizedOverlay class ?
If you are having any sample code or any help link then please send me.

Thank You
Ranjan Deo
User avatar
ranjandeo
Experienced Developer
Experienced Developer
 
Posts: 84
Joined: Mon May 31, 2010 6:20 am
Location: Kolkata, India

Re: How to show some location as overlay in map.

Postby jonbonazza » Thu Jul 29, 2010 2:36 pm

http://www.androidguys.com/2008/09/09/m ... y-and-you/

but use a texview instead of a drawable. If this doesn't work, I am not sure how you might do it.
jonbonazza
Master Developer
Master Developer
 
Posts: 665
Joined: Thu Jul 15, 2010 2:58 pm
Location: WV USA

Re: How to show some location as overlay in map.

Postby ranjandeo » Thu Jul 29, 2010 2:45 pm

jonbonazza wrote:http://www.androidguys.com/2008/09/09/maps-itemizedoverlay-and-you/

but use a texview instead of a drawable. If this doesn't work, I am not sure how you might do it.

I have already visited this link.
Actually I have added some Drawable items as ItemizedOverlay but don't know how I can add some TextView to show the place name.

BTW thanks for your valuable time and reply.
Ranjan Deo
User avatar
ranjandeo
Experienced Developer
Experienced Developer
 
Posts: 84
Joined: Mon May 31, 2010 6:20 am
Location: Kolkata, India

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 2 guests