On Jun 23, 1:34 am, majestic <[email protected]> wrote:
>
> Wow that code is waaaay beyond my capability. I guess I will have to
> use a kml file instead of being clever.. Thank you for trying!

It only looks complicated because of the encoded strings. Each element
pushed on to array "lines" is an object which defines an encoded
polyline. Then an encoded GPolygon is created from that array, and
overlaid on the map.

var lines = new Array;
lines.push({color:'#FF0000',weight:1,opacity:1,zoomFactor:2,numLevels:
18,points:'_w`vH...APaD',levels:'P?...@@P'});
lines.push({color:'#FF0000',weight:1,opacity:1,zoomFactor:2,numLevels:
18,points:'azcvH...wAiB',levels:'PB...D?P'});
...
var parishboundary=new
GPolygon.fromEncoded({polylines:lines,fill:true,color:'#FF0000',opacity:
0.07,outline:true});
map.addOverlay(parishboundary);

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