Friday, June 4, 2010

Polygons Joined Up

I have an odd problem with placing Gpolygons on a map

I am creating multiple GPolygons by calling a javascript function
repeatedly with the same map object.

Simplistically, we have

loop calling function polygon(map object, array of points)

function polygon(map, array) {


var polygon= new Gpolygon(array...);
map.addOverlay(polygon);
}

I have made sure the polygons are closed with the start and end points
being the same.

The big problem I have is that for some reason the polygons are all
being linked by a line. You can see this at http://www.phased.co.uk/GBBR/viewcycle.php

I am stumped..any ideas?

TIA

--
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


Real Estate