GraphicalSelect Snippet for a dropdown to select square, circle or polygon to select an area in the map
Classes
Members
-
staticSnippets.GraphicalSelect.template
-
Template used to add the dropdown to
Events
-
featureToGeoJson
devtools/jsdoc/events.js, line 2142 -
It converts a feature to a geojson. If the feature geometry is a circle, it is converted to a polygon.
Name Type Description feature
ol.Feature to transfor to geoJson Returns:
converted feature
Example
Radio.trigger("GraphicalSelect", "featureToGeoJson", feature);
-
resetGeographicSelection
devtools/jsdoc/events.js, line 2137 -
Sets the selection of the dropdown to the default value
Example
Radio.trigger("GraphicalSelect", "resetGeographicSelection");
-
resetView
devtools/jsdoc/events.js, line 2132 -
Resets the GraphicalSelect
Example
Radio.trigger("GraphicalSelect", "resetView");
-
setStatus
devtools/jsdoc/events.js, line 2126 -
Sets the state at GraphicalSelect - handles (de-)activation of this Tool
Name Type Description value
boolean active or not Example
Radio.trigger("GraphicalSelect", "setStatus", value);