new Carte()
Constructor
- Source:
- format/Carte.js
Methods
-
read(carte, options)
-
Read method
Parameters:
Name Type Description cartemcutils.Carte optionsObject json object
- Source:
- format/Carte.js
Returns:
- Type
- mcutils.Carte
-
readControls(carte, options)
-
Read controls for the current carte
Parameters:
Name Type Description cartemcutils.Carte optionsObject json object
- Source:
- format/Carte.js
-
readLayer(options, key)
-
Read a single layer
Parameters:
Name Type Description optionsObject layer options (json object)
keystring GPP API key
- Source:
- format/Carte.js
Returns:
- Type
- ol/layer/Layer
-
readLayers(options, key)
-
Read layers
Parameters:
Name Type Description optionsObject json object
keystring GPP API key
- Source:
- format/Carte.js
Returns:
- Type
- Array.<ol/layer/Layer>
-
readView(view, options)
-
Read view param
Parameters:
Name Type Description viewView optionsObject json object
- Source:
- format/Carte.js
-
write(carte [, uncompressed])
-
Write method
Parameters:
Name Type Argument Default Description cartemcutils.Carte uncompressedboolean <optional>
false - Source:
- format/Carte.js
Returns:
- Type
- Object | boolean
-
writeLayer(layer)
-
Write a single layer
Parameters:
Name Type Description layerol/layer/Layer - Source:
- format/Carte.js
Returns:
options layer options (json object)
- Type
- Object
-
writeLayers(layers [, uncompressed])
-
Write layers
Parameters:
Name Type Argument Default Description layersArray.<ol/layer/Layer> uncompressedboolean <optional>
false - Source:
- format/Carte.js
Returns:
options json object
- Type
- Object