-
Notifications
You must be signed in to change notification settings - Fork 41
Wegue configuration
Christian Mayer edited this page May 20, 2020
·
10 revisions
This describes the Wegue application configuration, which is modelled as JSON document.
Property | Mandatory | Meaning | Example |
---|---|---|---|
title | Title shown in the top toolbar | "title": "A Wegue WebGIS App" |
|
baseColor | Main colour of the UI elements |
"baseColor": "red darken-3" or "baseColor": "#ff3388"
|
|
logo | URL to an image shown as application logo | "logo": "https://dummyimage.com/100x100/aaa/fff&text=Wegue" |
|
logoSize | Size of the application logo defined in logo
|
"logoSize": "100" |
|
footerTextLeft | Text or HTML string to be displayed in the left side of the toolbar | "footerTextLeft": "Powered by <a href='https://meggsimum.de/wegue/' target='_blank'>Wegue WebGIS</a>" |
|
footerTextRight | Text or HTML string to be displayed in the right side of the toolbar | "footerTextRight": "meggsimum" |
|
showCopyrightYear | Boolean value, whether the copyright year should be shown on the right side of the toolbar |
"showCopyrightYear": true or "showCopyrightYear": false
|
|
mapZoom | x | Initial zoom level of the map | "mapZoom": 2 |
mapCenter | x | Initial center of the map in map projection | "mapCenter": [0, 0] |
mapProjection | Configuration object for CRS / projection used for the map | ||
modules | x | Array of module configuration objects | |
mapLayers | x | Array of map layer configuration objects | See mapLayers |
projectionDefs | Array of CRS / projection definition objects compatible to proj4js | See projectionDefs | |
tileGridDefs | Array of tile grid definition objects |
The property projectionDefs
is an array holding several proj4j compatible projection definitions in the form
of a nested array, where the first item is the projection code and the second item is the proj4js definition string. For example:
[
"EPSG:28992",
"+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.8703473836068,4.0812 +no_defs"
]
The projection definition can be found at epsg.io. The definition in the example above would therefore be available at http://epsg.io/28992.
TODO