Geoportal Extension for OpenLayers
API Reference

Class: GeoportalWFS

ol.layer.GeoportalWFS

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

new GeoportalWFS(options)

Layers/LayerWFS.js, line 61
Name Type Description
options Object

options for function call.

Name Type Description
layer String

Layer name (e.g. "")

maxFeatures Number optional

maximum features (max: 5000)

configuration Object optional

configuration (cf. example)

ssl Boolean optional

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

apiKey String optional

Access key to Geoportal platform

olParams Object optional

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

Name Type Description
sourceParams Object optional

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

Example
var layerWFS = new ol.layer.GeoportalWFS({
     layer  : "BDTOPO_V3:batiment",
     maxFeatures: 500,
     olParams : {
         minZoom: 15,
         maxZoom: 21,
         style: new ol.style.Style(...),
         sourceParams: {}
     }
});

layerWFS.getLegends();
layerWFS.getMetadata();
layerWFS.getTitle();
layerWFS.getDescription();
layerWFS.getQuicklookUrl();
layerWFS.getOriginators();

Extends

  • ol.layer.Vector

Methods

getConfiguration(){Object}

Layers/LayerWFS.js, line 156

Get configuration

getDescription(){String}

Layers/LayerWFS.js, line 180

Get description

getLegends(){Array}

Layers/LayerWFS.js, line 164

Get legends

getMetadata(){Array}

Layers/LayerWFS.js, line 172

Get metadata

getOriginators(){Array}

Layers/LayerWFS.js, line 204

Get originators

getQuicklookUrl(){String}

Layers/LayerWFS.js, line 196

Get quicklook url

getTitle(){String}

Layers/LayerWFS.js, line 188

Get title