Class: measureController

nsVmap.nsToolsManager.Measure#measureController

Members

style{ol.style.Style}

Methods

addInteraction(type) experimental

vmap/tools/measure.js, line 307

Add an OpenLayers interaction on the map

Name Type Description
type string

Intreaction type

calcDistance(coordinates){number} experimental

vmap/tools/measure.js, line 529

Calculate the distance between points with the haversine method

Name Type Description
coordinates array.<ol.Coordinate>

Coordinates

Returns:
Distance between the two points

createMeasureTooltip(oFeature) experimental

vmap/tools/measure.js, line 263

Creates a new measure measure-tooltip

Name Type Description
oFeature ol.Feature

Feature to create the tooltip

deleteAllFeatures() experimental

vmap/tools/measure.js, line 774

remove all the measure features

deleteFeature(isActive) experimental

vmap/tools/measure.js, line 757

remove the selected measure feature

Name Type Description
isActive boolean

true if the action is already active

displayFeatures() experimental

vmap/tools/measure.js, line 821

display the sketches in a list

drawPoint(isActive) experimental

vmap/tools/measure.js, line 672

Start draw point interaction

Name Type Description
isActive boolean

true if the action is already active

formatArea(polygon){string} experimental

vmap/tools/measure.js, line 601

format area output

Name Type Description
polygon ol.geom.Polygon

formatCoordinate(point){string} experimental

vmap/tools/measure.js, line 547

format length output

Name Type Description
point ol.geom.Point

formatLength(line){string} experimental

vmap/tools/measure.js, line 502

format length output

Name Type Description
line ol.geom.LineString

formatPerimeter(polygon){string} experimental

vmap/tools/measure.js, line 585

format perimeter output

Name Type Description
polygon ol.geom.Polygon

formatRadius(circle){string} experimental

vmap/tools/measure.js, line 558

format radius output

Name Type Description
circle ol.geom.Circle

getPointsInfos(olFeature){array}

vmap/tools/measure.js, line 859

Get all the points informations

Name Type Description
olFeature ol.Feature

OpenLayers Feature

Returns:
Points informations

getTooltipPosition(geom) experimental

vmap/tools/measure.js, line 471

Set the tooltip position

Name Type Description
geom ol.geom.Geometry

The feature to place the tooltip in return {ol.Coordinate} The coordinates where place the tooltip

measureCircle(isActive) experimental

vmap/tools/measure.js, line 723

Start measure circle interaction

Name Type Description
isActive boolean

true if the action is already active

measureLine(isActive) experimental

vmap/tools/measure.js, line 689

Start measure line interaction

Name Type Description
isActive boolean

true if the action is already active

measurePolygon(isActive) experimental

vmap/tools/measure.js, line 706

Start measure polygon interaction

Name Type Description
isActive boolean

true if the action is already active

modifyFeature(isActive) experimental

vmap/tools/measure.js, line 740

modify the selected measure feature

Name Type Description
isActive boolean

true if the action is already active

removeMeasuresInteractions() experimental

vmap/tools/measure.js, line 797

remove all the measure interactions

setInfosToFeature(olFeature) experimental

vmap/tools/measure.js, line 410

Put the infos in to the feature

Name Type Description
olFeature ol.Feature

Feature to put the infos in

showHideAnotations() experimental

vmap/tools/measure.js, line 657

show/hide anotations

zoomToFeature() experimental

vmap/tools/measure.js, line 631

zoom to the selected feature