JMap.Application.Measure.activateMeasureType
Activates a measure type for the drawing measurement tool.
The new measure type to apply
JMap.Application.Measure.deleteAll
Deletes all measures.
Returns deleted measure count.
JMap.Application.Measure.deleteAllCircles
Deletes all measures having type === "circle".
Returns deleted measure count.
JMap.Application.Measure.deleteAllLines
Deletes all measures having type === "line_string".
Returns deleted measure count.
JMap.Application.Measure.deleteAllPolygons
Deletes all measures having type === "polygon".
Returns deleted measure count.
JMap.Application.Measure.deleteMeasuresById
Deletes a measure for a given id.
list of measure ids
JMap.Application.Measure.deleteSelected
Deletes all selected measures.
Returns deleted measure count.
JMap.Application.Measure.existsById
Returns true if a measure exists for the given id, else false.
JMap.Application.Measure.getActiveMeasureType
Returns the current active measure type.
JMap.Application.Measure.getAll
Returns all measures.
JMap.Application.Measure.getAllCircleMeasures
Returns all "circle" measures. Result contains no line or polygon measures.
JMap.Application.Measure.getAllLineMeasures
Returns all "line" measures. Result contains no polygon or circle measures.
JMap.Application.Measure.getAllPolygonMeasures
Returns all "polygon" measures. Result contains no line or circle measures.
JMap.Application.Measure.getById
Returns the measure for the given id.
JMap.Application.Measure.getMeasurementSystem
Returns the current measurement system used by the Measurements Panel
JMap.Application.Measure.getSelectedIds
Returns the current measure selection.
JMap.Application.Measure.setAllMeasures
Resets measures with provided measures.
JMap.Application.Measure.setMeasurementSystem
Sets the measurement system used by the Measurements Panel. This setting is only taken into account when you draw measurements using the Measurements Panel. It does not affect jmap-core-js methods like JMap.Geometry.getDistance, which always return geodetic values.
This method should not be called in regular situations.
Default measurement system is "geodetic", meaning that all measurements are representative of the length or area of features on the surface of the Earth. This is what is normally desired.
In some rare situations, someone may want to get the length or area of measurements in the map's projection plane (EPSG:3857 - WGS 84 / Pseudo-Mercator). In this case, they can set the measurement system to "planar".
Be warned that lengths or areas in planar context are not representative of the real dimensions on the earth's surface. The only supported planar projection for measurements is EPSG:3857.
"geodetic" (default) or "planar"
JMap.Application.Measure.setSelectionActive
Activates or deactivates the measurement selection mode.
If active, measures can be selected by clicking on the map (then changed or removed).
true to activate selection mode, false to deactivate
JMap.Application.Selection
You can manage the application measure tools here.