meteoJS/synview/map . SynviewMap
Source: synview/
Abstract class to defined interface to the mapping library.
new SynviewMap(options)
Parameter
Name | Type | Optional | Description |
---|---|---|---|
options |
|
|
Options. |
Methods
findLayerInType(layer, type) → integer
Returns index of the passed layer inside the layer group of the passed type. Synview internal method.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
layer |
object |
|
Layer object. |
type |
|
Type. |
- Returns
-
integer
Index.
getExtendedEventByTypeCollection(event, collection) → module:meteoJS/synview/map~extendedEvent
Returns an event object, that is extended by several keys. Synview internal method.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
event |
object |
|
Map event object. |
collection |
|
Type collection. |
- Returns
-
module:meteoJS/synview/map~extendedEvent
Event object.
getMap() → mixed
Returns map object.
- Returns
-
mixed
Map object.
getViewCenter() → (Array of number or undefined)
Helper function. Returns the view center in WGS84 coordinates, lat/lon.
- Returns
-
(Array of number or undefined)
Center.
getViewZoom() → (number or undefined)
Helper function. Returns the view zoom level.
- Returns
-
(number or undefined)
Zoom level.
makeLayerGroup() → mixed
Returns a new layer group, already added to the map.
- Returns
-
mixed
New layer group.
setViewCenter(center) → module:meteoJS/synview/map.SynviewMap
Helper function. Sets the view center in WGS84 coordinates, lat/lon.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
center |
(Array of number or undefined) |
|
Center. |
- Returns
setViewZoom(zoom) → module:meteoJS/synview/map.SynviewMap
Helper function. Sets the view zoom level.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
zoom |
(number or undefined) |
|
Zoom level. |
- Returns