Re: GGeoXml and non-clickable polygon
On Jun 9, 5:36 pm, Brice <crl.br...@gmail.com> wrote:
> what makes possible to fill
> any place except the area determined by the polygon (the encoded one
> in my case).
>
Your example had a large rectangular polygon surrounding France, with
an interior "donut" polygon of Limousin.
The idea is to make the outer polygon as large as the world, using the
limits of Google's mercator projection.
I think the maximum geographic dimension of a shape is 180 degrees,
because the API will always draw the shortest path between any two
points, so one way to draw the world is in three rectangles:
1. the first centred in Europe, extending from 89 W longitude to 89 E
longitude, from north to south pole (approximately 85.05 degrees north
and south).
2. the second from 89W to 180W
3. the third from 89E to 180E
these polygons are filled, with no outline, so they appear to cover
the entire map.
see this example with the Limousin polygon:
http://www.william-map.com/20100609/2/inverse.htm
...
--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home