answersLogoWhite

0

A polygon is very similar to a polyline. However, you have an additional option to set the interior fill color. We can draw a border around the state of Colorado (a nice rectangular state defined by simple latitude and longitude values) using the following code:Copy

var points = [ new VELatLong(41,-102), new VELatLong(37,-102), new VELatLong(37,-109), new VELatLong(41,-109), new VELatLong(41,-102) ]; var outlineColor = new VEColor(0,0,255,1); var fillColor = new VEColor(0,0,255,.2); var outlineWidth = 5; var id = 'Colorado'; var poly = new VEPolygon(id, points, fillColor, outlineColor, outlineWidth) map.AddPolygon(poly);

User Avatar

Wiki User

12y ago

What else can I help you with?