Class: VectorStyle

mcutils.format.layer. VectorStyle

VectorStyle layer format reader/writer.


new VectorStyle()

Constructor

Source:
format/layer/VectorStyle.js

Extends

  • mcutils.format.Layer

Methods


read(json)

Read VectorStyle layer

Parameters:
Name Type Description
json options

source

Source:
format/layer/VectorStyle.js
Returns:
Type
VectorStyleLayer

readFeatures(json)

Read VectorStyle features

Parameters:
Name Type Description
json options

source

Source:
format/layer/VectorStyle.js
Returns:
Type
VectorStyleLayer

write(layer [, uncompressed])

Write layer

Parameters:
Name Type Argument Default Description
layer VectorStyleLayer
uncompressed boolean <optional>
false
Source:
format/layer/VectorStyle.js
Returns:

json data

Type
object

writeFeatures(layer, options [, uncompressed])

Write the features

Parameters:
Name Type Argument Default Description
layer VectorStyleLayer

the layer to write

options *
uncompressed boolean <optional>
true
Source:
format/layer/VectorStyle.js
Returns:

json data

Type
object