new bbbfly.MapDrawing (options)
Parameters
| Name | Type | Description |
|---|---|---|
| options | bbbfly.MapDrawing.options |
Properties
| Name | Type | Description |
|---|---|---|
| ID | string | null | |
| Options | bbbfly.MapDrawing.options |
In Packages
Type Definitions
-
options object
-
Properties:
Name Type Description ID string -
bbbfly.MapDrawing.scancallback (layer, index, layers){boolean|undefind}
-
Scans drawing Leaflet layers.
Parameters:
Name Type Description layer L.Layer index integer layers array Returns:
Type Description boolean | undefind Return boolean to stop scan and return that value
Methods
-
AddTo (handler){boolean}
-
Parameters:
Name Type Description handler bbbfly.MapDrawingsHandler Returns:
Type Description boolean If was set -
AddTo (feature){boolean}
-
Parameters:
Name Type Description feature mapFeature Feature to add drawing to - See:
Returns:
Type Description boolean If added properly -
Returns:
Type Description mapLayer | Array.<mapLayer> Leaflet layer -
Dispose ()
-
GetGeometry (){GeoJSON|null}
-
Returns:
Type Description GeoJSON | null -
GetPoint (){mapPoint}
-
Returns:
Type Description mapPoint -
RemoveFrom (feature){boolean}
-
Parameters:
Name Type Description feature mapFeature optional Feature to remove drawing from - See:
Returns:
Type Description boolean If removed properly -
RemoveLayer (layer){boolean}
-
Parameters:
Name Type Description layer mapLayer Layer to remove from drawing Returns:
Type Description boolean If removed -
Scan (callback, def){boolean}
-
Parameters:
Name Type Description callback bbbfly.MapDrawing.scancallback def boolean Default return value Returns:
Type Description boolean Scan result value -
abstract Update ()
Events
-
OnClick ()
-
OnDblClick ()
-
OnEmpty ()
-
-
OnMouseEnter ()
-
OnMouseLeave ()
-
OnRightClick ()