Class: Edugeo

mcutils.format.layer. Edugeo

Geoportail layer format reader/writer.


new Edugeo()

Constructor

Source:
format/layer/Edugeo.js

Extends

Methods


read(json)

Read Geoportail layer

Parameters:
Name Type Description
json options

source

Overrides:
Source:
format/layer/Edugeo.js
Returns:
Type
ol/layer/Geoportail

readOptions(layer, options)

Set the layers options (visibility, opacity, etc.)

Parameters:
Name Type Description
layer ol.layer

ol layer

options Object
Properties
Name Type Description
name String

name of the layer

title String

title of the layer

opacity bool

opacity of the layer, default 1

visibility bool

visibility of the layer

copyright String

layer copyright

description String

layer description

cluster boolean
maxZoomCluster number
popupHoverSelect vboolean
Inherited From:
Overrides:
Source:
format/layer/Layer.js

write(layer)

Write Geoportail layer

Parameters:
Name Type Description
layer ol/layer/Geoportail
Overrides:
Source:
format/layer/Edugeo.js
Returns:

json data

Type
object

writeOptions(layer, options)

Get the layers options (visibility, opacity, etc.)

Parameters:
Name Type Description
layer ol.layer

ol layer

options Object

a list of options to extend. The list is extended in place.

Inherited From:
Overrides:
Source:
format/layer/Layer.js
Returns:

the options

Type
Object