Class: Geoportail

ol.layer. Geoportail

IGN's Geoportail WMTS layer definition


new Geoportail( [options] [, tileoptions])

Parameters:
Name Type Argument Description
options olx.layer.WMTSOptions <optional>

WMTS options if not defined default are used

Properties
Name Type Argument Default Description
layer string

Geoportail layer name

gppKey string

Geoportail API key, default use layer registered key

projection ol.projectionLike <optional>
EPSG:3857

projection for the extent, default EPSG:3857

tileoptions olx.source.WMTSOptions <optional>

WMTS options if not defined default are used

Extends

  • ol.layer.Tile

Members


<static> capabilities

Default capabilities for main layers


<static> themes

List of theme with a regexp to filter layers by theme (with getcapabilities)

Methods


<static> getCapabilities(gppKey)

Get Key capabilities

Parameters:
Name Type Description
gppKey string

the API key to get capabilities for

Returns:

Promise-like response, use then, catch and finally to get the response

Type
*

<static> isRegistered(layer)

Check if a layer registered with a key?

Parameters:
Name Type Description
layer string

layer name

Returns:
Type
boolean

<static> loadCapabilities(gppKey)

Load capabilities from the service

Parameters:
Name Type Description
gppKey string

the API key to get capabilities for

Returns:

Promise-like response

Type
*

<static> register(layer, capability)

Register new layer capability

Parameters:
Name Type Description
layer string

layer name

capability *