button | object | | start/stop drawing button options PropertiesName | Type | Attributes | Default | Description |
---|
parentContainer | string | | | the parent element id where to add the draw button element | activateText | string | <optional>
| 'Draw area on map' | button text to display for starting a draw area operation | deactivateText | string | <optional>
| 'Stop drawing' | button text to display for stopping a draw area operation | cssClass | string | <optional>
| 'gem-draw-button' | set custom style rules for the start/stop draw button |
|
dialogPopup | object | <optional>
| dialog popup for invalid area options PropertiesName | Type | Attributes | Default | Description |
---|
cssClass | string | <optional>
| 'gem-dialog-popup' | set custom style rules for the dialog | textInfo | string | <optional>
| 'Please draw an area' | text to display in the dialog | cssDismissButton | string | <optional>
| 'gem-draw-button' | set custom style rules for the dismiss dialog button | dismissText | string | <optional>
| 'Ok' | text to display in the dismiss dialog button |
|
drawStyle | object | <optional>
| specify custom drawing options for the area PropertiesName | Type | Attributes | Default | Description |
---|
lineWidth | number | <optional>
| 3 | set custom line width in px | lineCap | string | <optional>
| 'round' | other options are 'butt' or 'square' | lineJoin | string | <optional>
| 'round' | other options are 'bevel' or 'miter' | stroke | string | <optional>
| 'rgba(55, 71, 79, 0.9)' | set custom stroke style | fill | string | <optional>
| 'rgba(129, 156, 169, 0.4)' | set custom fill style |
|
areaData | object | <optional>
| options for data source inside the area PropertiesName | Type | Attributes | Default | Description |
---|
maxCoords | number | <optional>
| 900 | specify maximum number of coordinates to collect from the drawing | markerGroupMaxLevel | number | <optional>
| 13 | specify markers maximum grouping level |
|