Hey Gabriel,

The shape property essentially creates an image-map.  The equivalent HTML
tag to this is the <area> tag.  For more information on supported shapes and
coordinate formats, check out this page:
http://www.w3schools.com/TAGS/tag_area.asp

As you can see, supported shapes are: rect, circle, poly.

Depending on what shape is specified, the coordinates are represented as
suggested here:
http://www.w3schools.com/TAGS/att_area_coords.asp


Perhaps we could include more information in our docs around how to use
shape/coordinates by linking to the above pages.  I'll suggest it to the
team.

Hope this helps!

Dann

On Wed, Apr 7, 2010 at 10:13 PM, Gabriel Svennerberg <
[email protected]> wrote:

> In the API reference the shape property of MarkerOptions is defined as
> being of type "object". The Description is:
>
> "Image map region for drag/click. Array of x/y values that define the
> perimeter of the icon."
>
> When I look at the examples I find one that uses the shape property
> and there I can see that this object actually has two properties:
> coord and type. coord takes the array of x/y values and type takes a
> string stating what kind of shape it is. In the example the value for
> type is 'poly'.
>
> var shape = {
>  coord: [1, 1, 1, 20, 18, 20, 18 , 1],
>  type: 'poly'
> };
>
> My question is are there other valid values for type other than
> 'poly'?
>
> Also, maybe the API reference should be updated with more precise
> information about the shape property.
>
> Thanks!
> - Gabriel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>


-- 
Daniel Lee
Developer Programs Engineer
Google, Inc.
345 Spear Street
San Francisco, CA 94105
650 253 0967

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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/google-maps-js-api-v3?hl=en.

Reply via email to