Geoportal Extension for OpenLayers 3 API Reference

Class: GeoportalWMS

ol.layer.GeoportalWMS

Geoportal LayerWMS source creation (inherit from ol.layer.Tile)

new GeoportalWMS(options)

Ol3/Layers/LayerWMS.js, line 35
Name Type Description
options Object

options for function call.

Name Type Description
layer String

Layer name (e.g. "ORTHOIMAGERY.ORTHOPHOTOS")

apiKey String optional

Access key to Geoportal platform

olParams Object optional

other options for ol.layer.Tile function (see http://openlayers.org/en/v3.11.2/apidoc/ol.layer.Tile.html)

Name Type Description
sourceParams Object optional

other options for ol.source.TileWMS function (see http://openlayers.org/en/v3.11.2/apidoc/ol.source.TileWMS.html)

Example
var layerWMS = new ol.layer.GeoportalWMS({
     layer  : "ORTHOIMAGERY.ORTHOPHOTOS"
});

Extends

  • ol.layer.Tile