Text Label in Rectangle

2,415 views
Skip to first unread message

Glen Bass

unread,
Oct 22, 2011, 2:12:12 PM10/22/11
to Google Maps JavaScript API v3
Hello:

I am placing several rectangles on a map and would like to label each
rectangle from its records title. Can I do this by specifying the
title inside the rectangle options or must I create a separate marker
and label the rectangle in that manner.

this page shows three rectangles
http://www.ecoexam.com/Client/circle-simple.html

I wish to label each.

Thank you

Glen Bass

geoco...@gmail.com

unread,
Oct 22, 2011, 2:17:57 PM10/22/11
to Google Maps JavaScript API v3
On Oct 22, 11:12 am, Glen Bass <glen...@gmail.com> wrote:
> Hello:
>
> I am placing several rectangles on a map and would like to label each
> rectangle from its records title. Can I do this by specifying the
> title inside the rectangle options

There is no "title" option for a Rectangle or a Polygon.

> or must I create a separate marker and label the rectangle in that manner.

I did something like that here:
http://www.geocodezip.com/ParkerPalmSprings.html

-- Larry

>
> this page shows three rectangleshttp://www.ecoexam.com/Client/circle-simple.html

Glen Bass

unread,
Oct 22, 2011, 2:42:11 PM10/22/11
to Google Maps JavaScript API v3
Hi Larry:

Thanks for the super fast reply :-)

Your link is what I was thinking.

I might try to make it a custom marker, something that will contain
the dynamic text.

I saw a couple examples out there.

thanks

Glen

On Oct 22, 11:17 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:

Glen Bass

unread,
Oct 22, 2011, 2:43:44 PM10/22/11
to Google Maps JavaScript API v3
Actually, upon further review, you did do what I was looking to do.

forest through the trees thing

Thanks

Glen

On Oct 22, 11:17 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages