Label overlays?

625 views
Skip to first unread message

jhodgski

unread,
Aug 23, 2010, 2:34:16 PM8/23/10
to Google Maps JavaScript API v3
Does anyone know how I can add simple text-in-box overlays to my v3
map? (v2 solution is http://sub1.econym.org.uk/gmap/elabel.htm - but
it doesn't work on v3...)

Cheers,
James

geoco...@gmail.com

unread,
Aug 23, 2010, 3:00:59 PM8/23/10
to Google Maps JavaScript API v3
On Aug 23, 11:34 am, jhodgski <ja...@telestial.org> wrote:
> Does anyone know how I can add simple text-in-box overlays to my v3
> map? (v2 solution ishttp://sub1.econym.org.uk/gmap/elabel.htm- but
> it doesn't work on v3...)

You could try porting that to v3 or use the native v3 OverlayView.
http://code.google.com/apis/maps/documentation/javascript/reference.html#OverlayView

-- Larry

>
> Cheers,
> James

Joseph Elfelt

unread,
Aug 23, 2010, 3:20:47 PM8/23/10
to Google Maps JavaScript API v3
Perhaps KML ground overlays would be useful.

This example uses an image as a ground overlay.
http://code.google.com/apis/kml/documentation/kml_tut.html#ground_overlays

I've used text in a png file as ground overlays

JeffJensen

unread,
Sep 9, 2010, 6:08:43 PM9/9/10
to Google Maps JavaScript API v3
Just to clarify - Google Maps v3 API does NOT support placemark
labels, right? So a KML file which has placemark labels will display
correctly in Google Earth but not in Google Maps.
Google Maps does support KML Elements NAME, POINT and PLACEMARK (see
http://code.google.com/apis/kml/documentation/kmlelementsinmaps.html)
so I'm not sure why I cannot get Google Maps to display a label since
these are the elements which have the placemark label.

Thanks,

Jeff Jensen

On Aug 23, 12:20 pm, Joseph Elfelt <josephelf...@gmail.com> wrote:
> Perhaps KML ground overlays would be useful.
>
> This example uses an image as a ground overlay.http://code.google.com/apis/kml/documentation/kml_tut.html#ground_ove...
Reply all
Reply to author
Forward
0 new messages