You can't draw polygons if your projection has less than 32 zoom levels.

Try changing
 var custom_custommap = new GMapType(custom_tilelayers,
   new GMercatorProjection(7), "Old OS");

To
 var custom_custommap = new GMapType(custom_tilelayers,
   new GMercatorProjection(32), "Old OS");

[What's happening is that the API performs some of the complex polygon
calculations only once, rather than recalculating everything when the
zoom changes, for efficiency. By doing the pixel calculations at a high
zoom level, it's possible to divide the results down and get the correct
results for all lower zoom levels. If the current GProjection doesn't
have high zoom levels, it crashes.]

-- 
Mike Williams
http://econym.org.uk/gmap


--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
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-api?hl=en.


Reply via email to