new SynviewMap(options)

Parameter

Name Type Optional Description

options

 

 

Options.

Fires
module:meteoJS/synview/map#change:view

Methods

abstract

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

module:meteoJS/synview/type.Type

 

Type.

Returns

integer Index.

abstract

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

module:meteoJS/synview/typeCollection.TypeCollection

 

Type collection.

Returns

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

getMap() → mixed

Returns map object.

Returns

mixed Map object.

abstract

getViewCenter() → (Array of number or undefined)

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

Returns

(Array of number or undefined) Center.

abstract

getViewZoom() → (number or undefined)

Helper function. Returns the view zoom level.

Returns

(number or undefined) Zoom level.

abstract

makeLayerGroup() → mixed

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

Returns

mixed New layer group.

abstract

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

module:meteoJS/synview/map.SynviewMap This.

abstract

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

module:meteoJS/synview/map.SynviewMap This.