Namespace: layer

ga.layer

Methods

ga.layer.create(layer, options){ol.layer.Group|ol.layer.Image|ol.layer.Tile|ol.layer.Vector|undefined}

src/ga/layer/layer.js, line 38

Create an GeoAdmin layer using the geoadmin bod-id you may find on Which layers are available

Name Type Description
layer string

Geoadmin layer id.

options Object

Optional layer options (used in order to overide options defined in the layer configuration).

Example
var lyr = ga.layer.create('ch.swisstopo.pixelkarte-farbe')
var lyr1 = ga.layer.create('ch.swisstopo.lubis-luftbilder_farbe', {timestamp: '19901231'})