Class: Part

WIND.Map. Part

Creates a WIND.Map.Part object.

new Part(geometry, projection, style)

Creates a WIND.Map.Part object.
Parameters:
Name Type Description
geometry string Type and coordinates of the geometry. It can either a "POLYGON", a "MULTIPOLYGON", a "LINEstring", a "MULTILINEstring", a "POINT", a "MULTIPOINT", a "MARKER" or a "MULTIMARKER.
projection string The projection system of the map(georeferenced coordinate systems), by default it's EPSG:4326.
style string Dedine the css style of the geometry.
Example
var part = new WIND.Map.Part("POINT(0.43, 46.56)", "EPSG:4326","strokeColor:#FF9900,strokeWidth:3,strokeOpacity:0.8,fillColor:#FFFF00,fillOpacity:0.4");

Methods

hide()

Hide the Part.
Example
var part = new WIND.Map.Part("POINT(0.43, 46.56)", "EPSG:4326","strokeColor:#FF9900,strokeWidth:3,strokeOpacity:0.8,fillColor:#FFFF00,fillOpacity:0.4");
part.hide();

highlight()

Hightlight the Part.
Example
var part = new WIND.Map.Part("POINT(0.43, 46.56)", "EPSG:4326","strokeColor:#FF9900,strokeWidth:3,strokeOpacity:0.8,fillColor:#FFFF00,fillOpacity:0.4");
part.highlight();

show()

Displays the Part.
Example
var part = new WIND.Map.Part("POINT(0.43, 46.56)", "EPSG:4326","strokeColor:#FF9900,strokeWidth:3,strokeOpacity:0.8,fillColor:#FFFF00,fillOpacity:0.4");
part.show();