GPolygon is here

The API team has just announced the existence of a new API feature (since 2.69): The GPolygon.

Needless to say this is a feature we’ve been expecting for a while. A transparent, filled, polygon is something that many people have been trying to do for a while now, none of which were more than polyline or overlay hacks. The nearest we came was the state overlay demo that Mike explained in September.

I’m hoping that Mike can revisit the shape files example and do a GPolygon demo as a compliment to the custom tiles one from September. The logic of the shape-file parsing is still valid, but the rendering mechanism would be completely new.


4 Responses to “GPolygon is here”  

  1. 1 Ashish Mohta

    Really a nice thing.Transparency was required.Thx for the update

  2. 2 Rob

    Well done on the book, it reads well. Is there a limit to how many verticies a polygon could have?

  3. 3 James Love

    I am working on a project where I need to map numerous irregular polygons by clicking on the google map. For example a person would click around a valley to identify the limits of the valley. The clicks would be captured into a database and a transparent filled polygon would appear once the polygon was closed. I am going to attach comments to the polygons.

    Has anyone seen a free or paid script for this? Is so email me. Peace. - Jim

  4. 4 shwetha

    I have to place a image on Google map as
    GGroundOverlay. i am successful in placing the image over google map
    but problem is image size/zoom level is not in sync with that of the
    google map. I think it’s the problem with the bounds I am giving, how
    and where can I get the boundary data(southwest and north east) for
    the image?. Is there any way to get the boundaries dynamically?. Please help me to go forward with this.

Buy Our Books!

(Here's Why) PHP book Rails book DOM book mashups book