Yes, I know that "paths" is a property of PolygonOptions but I indeed meant 
"path". There seems to be a property of that name. In the polygon example:

http://code.google.com/apis/maps/documentation/javascript/examples/polygon-simple.html

you can change this line:

      paths: triangleCoords,

to this:

      path: triangleCoords,

and it still works. Also, if you add to that example these lines before the 
bermudaTriangle:

    var emptyTriangle = new google.maps.Polygon({paths: []});
    emptyTriangle.setMap(map);

you can reproduce the problem with API version 3.4. If you change "paths" to 
"path" then there will be no error.


On Wednesday, July 20, 2011 10:22:21 PM UTC+3, Rossko wrote:
>
> > Is the path option of PolygonOptions a part of the public API? I don't 
> see 
> > it in the API reference. 
>
> Well, 'paths' strictly speaking 
>
> http://code.google.com/apis/maps/documentation/javascript/reference.html#PolygonOptions
>  
> It is there in the english language version, you may be getting 
> redirected to a different language version which aren't always as 
> complete it seems. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/sFbi6x1h7PoJ.
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