You can draw whatever you want on top of the map with overlays.  The
pin is the drawable though, not "instead of."  Use the fancy pin as
your drawable if you want.  OverlayItem works for ItemizedOverlay, if
you have a bunch of items to draw it's convenient. You can also just
draw your own stuff with your own Overlay.

If you want the fancy pin and a text box like that *at the same time*
and not as a result of a tap or click, then you could make that entire
thing your drawable for OverlayItem.

On the other hand, what is more common is standard pins and then some
more information in a box when the user taps a pin.  I do this with
AlertDialogs and such (through ItemizedOverlays onTap), because the
boxes are already drawn and easy to use. But, you could just have
another overlay and draw the white rounded box with pointer and text
yourself - again you can "draw" anything in the draw method. (Draw
gives you a Canvas where you can draw lines, circlies, pictures, add
bitmaps, text, whatever you want.)


On Dec 12, 5:55 am, mscwd01 <[email protected]> wrote:
> Anyone?
>
> On Dec 12, 1:40 am, mscwd01 <[email protected]> wrote:
>
> > Oh, and if its not possible - does anyone have any tips on how to
> > emulate such a map pin?
>
> > On Dec 11, 11:29 pm, mscwd01 <[email protected]> wrote:
>
> > > Similar to 
> > > this:http://www.webmonkey.com/mediawiki/images/Android_streetview.jpg
>
> > > On Dec 11, 11:26 pm, mscwd01 <[email protected]> wrote:
>
> > > > I want to know how to create a map "pin" such as the one used in the
> > > > Google Maps app, shown when you search for a particular address. The
> > > > white "balloon" which contains short String to denote what the pin is
> > > > representing.
>
> > > > Instead of adding a drawable for my pin in an OverlayItem, I would
> > > > rather use the pin above and incluce my own short String.
>
> > > > Is there an easy way to create this kind of pin or is it unique to the
> > > > Google Maps application?
>
> > > > Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to