Google have added Polylines and Polygons to
Maps API v3 and made some great improvements to their use. Polylines and polygons allow you to draw lines or filled regions on a map, specify stroke and fill styles, and handle events.
Now you can create polygons with holes like in this
Pentagon example.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcaZub9kykL_YuwPqjo5ZgZVzWE33XwLdi59bl67unFgZFMsqNjv05f1Ecm7xt9UEQmUlorj8xFU4DOm7eOnjuf2h5WM2gcMY7XybGxQzBMqqQl-vy67NsnnCy40o2OF5FRne1iA/s400/earth.jpg)
You can also now create vertices with polygons as in this
fractal snowflake poly example.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzOr51X_r_90nhm5uDo9PpBzXRC1NR9SaS85f8JNXbBpw7l6sM2CKIIC7qyzgP5wL7p2Ov2xlF3QCv9daRie17QdqCz6okLFX7YnZXQ5J4tEEyEgtBVyiBuQ6tyofJjYLPYLPQjg/s400/earth.jpg)
Via:
Google Geo Developers Blog_____________
2 comments:
Can you label these?
Rick you could add a click event to the polygon to open an information window with a name.
Alternatively you could add labels using the Label library -
http://googlemapsmania.blogspot.co.uk/2011/05/introducing-google-maps-label-library.html
Post a Comment