meteoJS/synview/map/ll . MapLL
Source: synview/
Object to "communicate" with Leaflet.
new MapLL()
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 |
|
|
Layer object. |
type |
|
|
Type. |
- Inherited from
- module:meteoJS/synview/map.SynviewMap#findLayerInType
- Returns
-
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 |
|
|
Map event object. |
collection |
|
|
Type collection. |
- Inherited from
- module:meteoJS/synview/map.SynviewMap#getExtendedEventByTypeCollection
- Returns
-
Event object.
getMap() → mixed
Returns map object.
- Inherited from
- module:meteoJS/synview/map.SynviewMap#getMap
- Returns
-
Map object.
getViewCenter() → (Array of number or undefined)
Helper function. Returns the view center in WGS84 coordinates, lat/lon.
- Inherited from
- module:meteoJS/synview/map.SynviewMap#getViewCenter
- Returns
-
Center.
getViewZoom() → (number or undefined)
Helper function. Returns the view zoom level.
- Inherited from
- module:meteoJS/synview/map.SynviewMap#getViewZoom
- Returns
-
Zoom level.
makeLayerGroup() → mixed
Returns a new layer group, already added to the map.
- Inherited from
- module:meteoJS/synview/map.SynviewMap#makeLayerGroup
- Returns
-
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 |
|
|
Center. |
- Inherited from
- module:meteoJS/synview/map.SynviewMap#setViewCenter
- Returns
-
This.
setViewZoom(zoom) → module:meteoJS/synview/map.SynviewMap
Helper function. Sets the view zoom level.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
zoom |
|
|
Zoom level. |
- Inherited from
- module:meteoJS/synview/map.SynviewMap#setViewZoom
- Returns
-
This.