name |
the unique name of the layer used internally. White spaces and special characters should be avoided. To be able to reuse layers add after the layer name a double underscore plus a suffix to tell them apart. |
title |
title for the layer visible to the user. |
abstract |
short description of the layer shown in the layer info. Optional. |
type |
type of source for the layer. For GeoJSON source the type is GEOJSON. |
source |
url to the layer. |
projection |
set projection (e g to "EPSG:4326") to request features in another reference system and Origo will handle the transformation. The proj4Defs has to be configured in index.json unless it's EPSG:4326 or 3857. |
style |
the name of the referenced style to be used for the layer. |
styleByAttribute |
style features in the layer based on their style-attribute. Defaults to false. |
group |
group the layer belong to. If group is not provided it will not be included in legend. Optional. |
queryable |
if featureinfo should be enabled for the layer. Default is true. |
opacity |
opacity of the layer. Value between 0 and 1. Default is 1. |
legend |
if the layer should be included in the map legend. Default is false. |
attribution |
attribution for the layer shown in the footer. Used for copyright text or any other information. Optional. |
visible |
if the layer should be visible. Default is false. |
extent |
extent of the layer. Map extent is default. |
minScale |
the minmum scale the layer is visible. Optional. |
maxScale |
the maximum scale the layer is visible. Optional. |
attributes |
definition of attributes and how they should be presented in featureinfo. If not provided all available attributes will be shown with a standard template. |
layerType |
option to set how the vector layer should be rendered. The options are cluster, image or vector. Default is vector. |
clusterStyle |
the style to be used for clustered features. Is required if layerType cluster is used. |
clusterOptions |
options for clustering. See the settings page for details. |
stylePicker |
Adds a dropup with alternative styles in the layer info. An array of styles defined with title, style and clusterStyle. See stylePicker. Optional. |
searchable |
used with includeSearchableLayers in search control. Can be set to 'always', true (when visible) or false. |
featureinfoTitle |
attribute to be used instead of the title property as the title for the popup/sidebar. Optional. |
removable |
Adds a Remove layer option to the layer info menu if set to true. Optional. |
zoomToExtent |
Adds a Zoom To option to the layer info menu if set to true. Optional. |
exportable |
Adds a Export layer option to the layer info menu if set to true. Optional. |
exportFormat |
String or array of formats for file export if exportable is true. Can be set to geojson, gpx or kml. Defaults to geojson. |
opacityControl |
Adds an opacity slider in the legends extended layer info. Optional, defaults to true. |
css |
Used for adding CSS properties to layer canvas element. Formatted as key/value pairs. |
headers |
Used for setting headers that should be included in the request of the GeoJSON. Formatted as a object with key/value pairs for the headers. Can be used for setting which type to accept or add a apikey. |
attachments |
An attachment object containing configuration for editing and displaying attachments |
thematicStyling |
Setting thematicStyling to true will add buttons to the different thematic styles to be able to turn them on or off. Optional, defaults to false. |