| visicom.ua | rf-planning | sets of geodata and gis solutions | gps-navigation | maps for polygraphy |
|
|
Map | About company | Project | Documentation (API) |
GraphicsVisicom Maps API allows you to draw graphics primitives. Examples:Adding to the map polyline and polygon. Display in browser:Drawing an arbitrary line on the map:
// Create layer var layer = new VLayer(); map.add(layer); var line = { coords: [{ lng: 30.5214, lat: 50.4650 }, { lng: 30.5114, lat: 50.4550 }], type: "line", style: { color: "#ff0000", lineWidth: 7, opacity: 0.4 } } layer.add(line); map.repaint(); Creating object with VArea JSON-code:
// Create the layer var layer = new VLayer(); map.add(layer); // Specify a polygon of 5 points var area = { coords: [{lng: 30.5214, lat: 50.4650}, {lng: 30.5114, lat: 50.4550}, {lng: 30.5614, lat: 50.4550}], type: "area", style: { color: "#ff0000", lineWidth: 7, opacity: 0.4 }, childs: [] } layer.add(area); map.repaint(); Class VLineLine. It is used to draw routes, tracks, etc. JSON:
{
coords: [{lng: 30.5214, lat: 50.4650}, {lng: 30.5114, lat: 50.4550}],
type : "line",
style:
{
color: "#ff0000",
lineWidth: 7,
opacity: 0.4
}
}
Object representation:Constructors
Methods
Methods inherited from VMapObject
Class VAreaPolygon. Used for display of polygonal objects. JSON:
{
coords: [{lng: 30.5214, lat: 50.4650},
{lng: 30.5114, lat: 50.4550},
{lng: 30.5614, lat: 50.4550}],
type: "area",
style:
{
color: "#ff0000",
opacity: 0.4
}
}
Object representation:Constructors
Methods
Methods inherited from VMapObject
|
|
Tel./Fax: +380 44 201-00-26 E-mail: web-maps@visi.com.ua Address: 01025, Ukraine, Kiev, B. Zhytomirskaya Str., 25/2 |
© 2006 2011, Visicom. All rights reserved. |