Configuration of layers that are supposed to be used in the respective client. All layers defined here have to have
an entry in the serviceRegister parameter of createMap. If @polar/plugin-layer-chooser is
installed and configured, all these layers will be displayed in that menu.
Initial center coordinate.
Coordinate needs to be defined in the chosen leading coordinate system configured by
mapConfiguration.epsg.
OptionalcheckIf set to true, all services' availability will be checked with head requests.
OptionalcolorColor scheme the client should be using.
If set to system, the color scheme is chosen according to the user's system preferences.
OptionalepsgLeading coordinate system. The coordinate system has to be defined in
mapConfiguration.namedProjections as well.
Changing this value should also lead to changes in
mapConfiguration.startCenter,
mapConfiguration.extent,
mapConfiguration.options and
mapConfiguration.startResolution as they are described in
or are related to the leading coordinate system.
OptionalextentMap movement will be restricted to the rectangle described by the given coordinates. Unrestricted by default.
Coordinates need to be defined in the chosen leading coordinate system configured by
mapConfiguration.epsg.
OptionalfeatureOptional path to define styles for vector features. The parameter may be a url or a path on the local file system.
See mapConfiguration.featureStyles for more information.
OptionalfooterConfiguration for footer plugin.
OptionalfullscreenConfiguration for fullscreen plugin.
OptionalgeoConfiguration for geoLocation plugin.
OptionaliconConfiguration for iconMenu plugin.
OptionallanguageThe initial language the client should be using.
OptionallayoutChoose between the standard sidebar layout with fixed positioning, the oldschool nine region layout with full configurability regarding positioning or add a custom layout as Vue component.
OptionalloadingConfiguration for loadingIndicator plugin.
OptionallocalesAll locales in POLAR and its plugins can be overridden to fit your needs. Take a look at the respective documentation for all values that can be overridden.
A language option is an object consisting of a type (its language key) and the i18next resource definition. You may e.g. decide that the texts offered in the LayerChooser do not fit the style of your client, or that they could be more precise in your situation since you're only using very specific overlays.
OptionalmarkersIf set, all configured visible vector layers' features can be hovered and selected by mouseover and click respectively.
They are available as features in the store. Layers with clusterDistance will be clustered to a multi-marker
that supports the same features. Please mind that only point marker vector layers are supported.
For all other layers, take a look at the configuration of
mapConfiguration.featureStyles.
Note, that this configuration parameter takes precedence over the configuration of
mapConfiguration.featureStyles.
OptionalnamedArray of usable coordinated systems mapped to a projection as a proj4 string. Defines 'EPSG:25832', 'EPSG:3857',
'EPSG:4326', 'EPSG:31467' and 'EPSG:4647' by default. If you set a value, please mind that all pre-configured
projections are overridden, and requiring e.g. 'EPSG:4326' will only work if it is also defined in your override.
OptionaloidcIf a secured layer is supposed to be visible on start, the token also has to be provided via this configuration parameter.
Updates to the token have to be done by updating the store parameter oidcToken.
OptionaloptionsDefines all available zoom levels mapped to the respective resolution and related scale.
The resolution is dependent on the chosen leading coordinate system configured by
mapConfiguration.epsg.
Defines 10 zoomLevels for 'EPSG:25832' by default.
options: [
{ resolution: 66.14579761460263, scale: 250000, zoomLevel: 0 },
{ resolution: 26.458319045841044, scale: 100000, zoomLevel: 1 },
{ resolution: 15.874991427504629, scale: 60000, zoomLevel: 2 },
{ resolution: 10.583327618336419, scale: 40000, zoomLevel: 3 },
{ resolution: 5.2916638091682096, scale: 20000, zoomLevel: 4 },
{ resolution: 2.6458319045841048, scale: 10000, zoomLevel: 5 },
{ resolution: 1.3229159522920524, scale: 5000, zoomLevel: 6 },
{ resolution: 0.6614579761460262, scale: 2500, zoomLevel: 7 },
{ resolution: 0.2645831904584105, scale: 1000, zoomLevel: 8 },
{ resolution: 0.1322915952292052, scale: 500, zoomLevel: 9 },
]
OptionalpinsConfiguration for pins plugin.
OptionalreverseConfiguration for reverseGeocoder plugin.
OptionalsecureRegular expression defining URLs that belong to secured services. All requests sent to URLs that fit the regular
expression will send the JSON Web Token (JWT) found in the store parameter oidcToken as a Bearer token in the
Authorization header of the request. Requests already including an Authorization header will keep the already present one.
OptionalstartInitial resolution; must be described in mapConfiguration.options.
Defaults to 15.874991427504629 which is a zoom level defined in the default configuration of
mapConfiguration.options.
OptionalthemeCustom theme for POLAR.
The default is to use KERN's standard theme.
OptionaltoastConfiguration for toast plugin.
The mapConfiguration allows controlling many client instance details.