-
-
Parameters:
| Name |
Type |
Description |
|
ctrl
|
ngControl
|
optional
Child control reference
|
- See:
-
-
-
Add new map layer.
Parameters:
- See:
-
Returns:
| Type |
Description |
|
boolean
|
- If layer was added |
-
-
Add new map layers.
Parameters:
- See:
-
Returns:
| Type |
Description |
|
boolean
|
- If all layers were added |
-
-
Parameters:
| Name |
Type |
Description |
|
def
|
ngControl.Definition
|
optional
Child control definition
|
- See:
-
Returns:
| Type |
Description |
|
object
|
null
|
Created control |
-
-
Create Leaflet layer wrapper.
Parameters:
- See:
-
Returns:
-
-
Create Leaflet map.
- See:
-
Returns:
-
-
Destroy Leaflet map.
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If map was destroyed |
-
-
- See:
-
-
-
Do reate Leaflet map from its options.
Parameters:
- See:
-
Returns:
-
inherited
DoGetLayerName
(layer){string|null}
-
Get layer name for current language.
Parameters:
Returns:
| Type |
Description |
|
string
|
null
|
|
-
-
Enable or disable map animation.
Parameters:
| Name |
Type |
Description |
|
enable
|
boolean
|
|
Returns:
| Type |
Description |
|
boolean
|
If state has changed |
-
inherited
FitBounds
(bounds, padding){boolean}
-
Pan and zoom map
to fit certain bounds
with padding.
Parameters:
| Name |
Type |
Description |
|
bounds
|
mapBounds
|
Bounds to fit
|
|
padding
|
padding
|
Padding between map edge and bounds
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If fit was successful |
-
inherited
FitCoords
(coords, padding){boolean}
-
Pan and zoom map
to fit certain bounds
with padding.
Parameters:
| Name |
Type |
Description |
|
coords
|
mapPoint
|
Coordinates to fit
|
|
padding
|
padding
|
Padding between map edge and coords
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If fit was successful |
-
-
Pan to see drawing
Parameters:
| Name |
Type |
Description |
|
id
|
string
|
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If fit was successful |
-
-
Pan and zoom to see all drawings
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If fit was successful |
-
-
- See:
-
Returns:
| Type |
Description |
|
string
|
null
|
|
-
-
Get all layers attributions.
- See:
-
Returns:
-
-
Get map bounds padding.
Parameters:
| Name |
Type |
Description |
|
padding
|
padding
|
optional
Bounds padding
|
- See:
-
Returns:
| Type |
Description |
|
padding
|
Bounds padding |
-
-
Get map position.
- See:
-
Returns:
| Type |
Description |
|
mapPoint
|
null
|
Center point |
-
-
Parameters:
| Name |
Type |
Description |
|
suffix
|
string
|
optional
Control part class name
|
Returns:
| Type |
Description |
|
string
|
Control class name |
-
-
- See:
-
Returns:
| Type |
Description |
|
object
|
ControlsPanel control or self |
-
-
- See:
-
Returns:
| Type |
Description |
|
object
|
null
|
ControlsPanel control |
-
-
Returns:
| Type |
Description |
|
bbbfly.Renderer.frame
|
Frame definition |
-
-
Returns:
| Type |
Description |
|
object
|
Frame dimensions |
-
-
- See:
-
Returns:
| Type |
Description |
|
object
|
null
|
FramePanel control |
-
-
Get map layer.
Parameters:
| Name |
Type |
Description |
|
id
|
string
|
|
- See:
-
Returns:
-
-
Get layer name for current language.
Parameters:
| Name |
Type |
Description |
|
id
|
string
|
|
Returns:
| Type |
Description |
|
string
|
null
|
|
-
-
Get map layers.
- See:
-
Returns:
-
-
Get Leaflet map.
- See:
-
Returns:
-
-
Get passed type linked map controls.
Parameters:
| Name |
Type |
Default |
Description |
|
type
|
string
|
undeUnlinkMapControlfined
|
optional
|
- See:
-
Returns:
-
inherited
GetMapLayerName
(mapLayer){string|null}
-
Get map layer name for current language.
Parameters:
| Name |
Type |
Description |
|
mapLayer
|
L.Layer
|
|
Returns:
| Type |
Description |
|
string
|
null
|
|
-
-
Get map maximal zoom level.
- See:
-
Returns:
| Type |
Description |
|
number
|
null
|
zoom - Zoom level |
-
-
Get map minimal zoom level.
- See:
-
Returns:
| Type |
Description |
|
number
|
null
|
zoom - Zoom level |
-
GetMode
(modeType){string|null}
-
Get map mode
Parameters:
| Name |
Type |
Description |
|
modeType
|
string
|
|
- See:
-
Returns:
| Type |
Description |
|
string
|
null
|
|
-
GetModes
(){Array.<string>}
-
Get all map modes
- See:
-
Returns:
| Type |
Description |
|
Array.<string>
|
|
-
-
Returns:
| Type |
Description |
|
bbbfly.Renderer.state
|
Control state |
-
-
Get map zoom level.
- See:
-
Returns:
| Type |
Description |
|
number
|
null
|
zoom - Zoom level |
-
LinkMapControl
(type, ctrl){boolean}
-
Link map control to map.
Parameters:
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If control was linked |
-
-
Parameters:
| Name |
Type |
Description |
|
ctrl
|
ngControl
|
optional
Child control reference
|
- See:
-
-
-
Remove map layer.
Parameters:
| Name |
Type |
Description |
|
id
|
string
|
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
- If layer was removed |
-
-
Remove map layers.
Parameters:
| Name |
Type |
Description |
|
ids
|
Array.<string>
|
optional
All layers will be removed if no ID is passed
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
- If all layers were removed |
-
-
Parameters:
| Name |
Type |
Default |
Description |
|
alt
|
string
|
null
|
|
Value to set
|
|
update
|
boolean
|
true
|
optional
If update control
|
- See:
-
-
inherited
SetBoundsPadding
(padding){boolean}
-
Set map bounds padding.
Parameters:
| Name |
Type |
Description |
|
padding
|
padding
|
px
|
Bounds padding
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If padding was set |
-
-
Set map position.
Parameters:
| Name |
Type |
Description |
|
coords
|
mapPoint
|
Center point
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If center was set |
-
SetDrawControlDrawing
(drawing){boolean}
-
Set draw control geometry type
Parameters:
Returns:
-
inherited
SetEnabled
(enabled, update){boolean}
-
Parameters:
| Name |
Type |
Default |
Description |
|
enabled
|
boolean
|
true
|
optional
Value to set
|
|
update
|
boolean
|
true
|
optional
If update control
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
False if change was denied |
-
inherited
SetInvalid
(invalid, update){boolean}
-
Parameters:
| Name |
Type |
Default |
Description |
|
invalid
|
boolean
|
true
|
optional
Value to set
|
|
update
|
boolean
|
true
|
optional
If update control
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
False if change was denied |
-
inherited
SetLayerVisible
(id, visible){boolean}
-
Shows or hides map layer.
Parameters:
| Name |
Type |
Description |
|
id
|
string
|
|
|
visible
|
boolean
|
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
- If layer visibility was set |
-
SetMapControlsVisible
(type, visible){boolean}
-
Set visibility of passed type map controls.
Parameters:
| Name |
Type |
Default |
Description |
|
type
|
string
|
|
|
|
visible
|
boolean
|
true
|
optional
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If map control visibility was set. |
-
-
Set maximal map bounds.
Parameters:
| Name |
Type |
Description |
|
bounds
|
mapBounds
|
array
|
Maximal bounds
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If bounds were set |
-
-
Set maximal map zoom level.
Parameters:
| Name |
Type |
Description |
|
zoom
|
number
|
Zoom level
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If zoom was set |
-
-
Set minimal map zoom level.
Parameters:
| Name |
Type |
Description |
|
zoom
|
number
|
Zoom level
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If zoom was set |
-
SetMode
(modeType, mode){string|null}
-
Set map mode
Parameters:
| Name |
Type |
Description |
|
modeType
|
string
|
|
|
mode
|
string
|
null
|
|
- See:
-
Returns:
| Type |
Description |
|
string
|
null
|
|
-
inherited
SetOverflow
(overflowX, overflowY, update){boolean}
-
Parameters:
| Name |
Type |
Default |
Description |
|
overflowX
|
bbbfly.Renderer.overflow
|
hidden
|
optional
Horizontal value to set
|
|
overflowY
|
bbbfly.Renderer.overflow
|
hidden
|
optional
Vertical value to set
|
|
update
|
boolean
|
true
|
optional
If update control
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
False if change was denied |
-
inherited
SetReadOnly
(readonly, update){boolean}
-
Parameters:
| Name |
Type |
Default |
Description |
|
readonly
|
boolean
|
true
|
optional
Value to set
|
|
update
|
boolean
|
true
|
optional
If update control
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
False if change was denied |
-
inherited
SetSelected
(selected, update){boolean}
-
Parameters:
| Name |
Type |
Default |
Description |
|
selected
|
boolean
|
true
|
optional
Value to set
|
|
update
|
boolean
|
true
|
optional
If update control
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
False if change was denied |
-
-
Set map position and zoom level.
Parameters:
| Name |
Type |
Description |
|
coords
|
mapPoint
|
Center point
|
|
zoom
|
number
|
Zoom level
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If view was set |
-
-
Set map zoom level.
Parameters:
| Name |
Type |
Description |
|
zoom
|
number
|
Zoom level
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If zoom was set |
-
StopDrawControlActions
()
-
Stop all draw control actions
-
-
-
-
Parameters:
| Name |
Type |
Default |
Description |
|
ctrl
|
ngControl
|
|
optional
Tracked control reference
|
|
track
|
boolean
|
true
|
optional
Pass false to cancel tracking
|
-
UnlinkMapControl
(type, ctrl){boolean}
-
Unlink map control from map.
Parameters:
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If control was unlinked |
-
-
Zoom map in.
Parameters:
| Name |
Type |
Description |
|
zoomBy
|
number
|
Number of zoom levels
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If map was zoomed |
-
-
Zoom map out.
Parameters:
| Name |
Type |
Description |
|
zoomBy
|
number
|
Number of zoom levels
|
- See:
-
Returns:
| Type |
Description |
|
boolean
|
If map was zoomed |