Preparing the data
External layers
Each external layer object should have the following properties:
id
: short string identifying the layer;label
: layer label to be displayed at the interface;type
: layer type, should be equal toraster
orvector
;label
: short string to describe the layers at the interface;url
: URL of tilejson, iftype=vector
;vectorLayers
: array vector layer ids, iftype=vector
;tiles
: array of tile URLs. Can be used as a mutually exclusive alternative tourl
if type isvector
. Required if type israster
;source
: object describing layer source:label
: short string describing the source;url
: URL to source.