new MapOL()

Extends
module:meteoJS/synview/map.SynviewMap

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

external:ol/layer/Layer~Layer

 

Layer object.

type

module:meteoJS/synview/type.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

external:ol/MapBrowserPointerEvent

 

Map event object.

collection

module:meteoJS/synview/typeCollection.TypeCollection

 

Type collection.

Returns

module:meteoJS/synview/map~extendedEvent Event object.

getMap() → mixed

Returns map object.

Inherited from
module:meteoJS/synview/map.SynviewMap#getMap
Returns

Map object.

getViewCenter() → Array of number

Helper function. Returns the view center in WGS84 coordinates, lat/lon.

Returns

Array of number Center.

getViewZoom() → (number or undefined)

Helper function. Returns the view zoom level.

Returns

(number or undefined) Zoom level.

makeLayerGroup() → external:ol/layer/Group~LayerGroup

Returns a new layer group, already added to the map.

Returns

external:ol/layer/Group~LayerGroup New layer group.

setViewCenter(center) → module:meteoJS/synview/map/ol~MapOL

Helper function. Sets the view center in WGS84 coordinates, lat/lon.

Parameter

Name Type Optional Description

center

Array of number

 

Center.

Returns

module:meteoJS/synview/map/ol~MapOL This.

setViewZoom(zoom) → module:meteoJS/synview/map/ol~MapOL

Helper function. Sets the view zoom level.

Parameter

Name Type Optional Description

zoom

(number or undefined)

 

Zoom level.

Returns

module:meteoJS/synview/map/ol~MapOL This.