Geoportal Extension for OpenLayers API Reference

Class: GeoportalWMS

ol.layer.GeoportalWMS

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

new GeoportalWMS(GeoportalWMSoptions)

OpenLayers/Layers/LayerWMS.js, line 32
Name Type Description
GeoportalWMSoptions Object

options for function call.

options.layer String

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

options.ssl Boolean optional

if set true, enforce protocol https (only for nodejs)

options.apiKey String optional

Access key to Geoportal platform

options.olParams Object optional

other options for ol.layer.Tile function (see ol.layer.Tile)

Name Type Description
sourceParams Object optional

other options for ol.source.TileWMS function (see ol.source.TileWMS)

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

Extends

  • ol.layer.Tile