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);
Chat with our AI personalities
Polygons on a map typically represent boundaries of areas, such as countries, states, or cities. They can also be used to show geographical features like lakes, forests, or parks. Polygons help visualize and define the spatial extent of various entities on a map.
How grey is used on a map can be found in the map's legend.
Black dots on a map typically represent point locations of interest, such as cities, landmarks, or attractions. They provide a visual reference for where specific features are located within the map's context.
anything
map grid
Black dots on a map typically represent specific locations or points of interest, such as cities, landmarks, or significant places. They help users easily identify key locations and navigate the map effectively.