Constructor
new MapManager(configopt)
- Source:
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
Configuration object Properties
|
Members
(readonly) filters :String
- Source:
Dashboard filters array wrapper
Type:
- String
(readonly) filterString :String
- Source:
Dashboard filter string wrapper
Type:
- String
Methods
addBaseLayer(layer)
- Source:
Adds a BaseLayer to the map.
Parameters:
Name | Type | Description |
---|---|---|
layer |
BaseLayer | The layer to add |
addOverlayLayer(layer)
- Source:
Adds an OverlayLayer to the map.
Parameters:
Name | Type | Description |
---|---|---|
layer |
OverlayLayer | The layer to add |
centerToFeature(feature)
- Source:
Centers map to definied feature
Parameters:
Name | Type | Description |
---|---|---|
feature |
Object | Feature to center |
fit(toExtent)
- Source:
Fits map to definied extent
Parameters:
Name | Type | Description |
---|---|---|
toExtent |
Array.<Number> | Array of numbers representing an extent: [minx, miny, maxx, maxy] |
fitToLayer(layer)
- Source:
Fits map to defined layer
Parameters:
Name | Type | Description |
---|---|---|
layer |
Layer | Layer to fit in map |
getLayerById(id) → {Layer}
- Source:
Searches and returns a specifc layer
Parameters:
Name | Type | Description |
---|---|---|
id |
String | The layer ID to find |
Returns:
- Type
- Layer
refresh()
- Source:
Refreshes all OverLayer layers
render(container)
- Source:
Renders the map and all its components into the specefied container.
Parameters:
Name | Type | Description |
---|---|---|
container |
HTMLElement | The element where the map will be rendered |
showFeaturePopup(layer, feature)
- Source:
Displays feature popup with information
Parameters:
Name | Type | Description |
---|---|---|
layer |
Object | Layer to show |
feature |
Object | Feature to show |