POLAR client DiPlanKarten
This document describes the @polar/client-diplan
-specific configuration options.
For our example clients, see here.
Configuration
DiPlan-specific configuration parameters belong within the mapConfiguration
object and are registered to the key diplan
.
diplan
fieldName | type | description |
---|---|---|
link | link? | If configured, the LinkButton will be rendered with the given URL and icon. |
renderType | 'iconMenu' | 'independent'? | If set to independent , the displayed view for the GeoEditing plugin is minified to a vertical list of buttons of icons instead of a list of buttons including descriptions. The plugin then may be used outside of an IconMenu. Defaults to iconMenu . |
diplan.link
fieldName | type | description |
---|---|---|
href | string | URL the LinkButton should open. |
icon | string | Icon used for the LinkButton. |
label | string | Label for the LinkButton. Can be a locale key. |
{
mapConfiguration: {
diplan: {
link: {
href: 'https://example.com',
icon: '$vuetify.icons.fullscreen-exit'
}
}
}
}
Usage of secured services
To be able to use secured services, the map client has to receive an OIDC token from the integrating application.
This can be done with the mutation setOidcToken
.
The mutation has to be called whenever the token has been refreshed so that the map client always has a valid token.
mapInstance.$store.commit('setOidcToken', 'base64encodedOIDCtoken')
If, however, a secured layer is supposed to be visible on start, the token also has to be provided via the configuration parameter oidcToken
.
Rerender hints
In some SPA applications, the map client may produce unexpected behaviour on rerenders. Should this still occur in 1.0.0-beta.1
or later, please try these methods:
- Use
mapInstance.$destroy()
in your framework's lifecycle's unmount method before newcreateMap
calls. - In general, your calls to our
watch
orsubscribe
methods should also be cleaned up to avoid leaks. These methods returnunwatch
orunsubscribe
methods respectively, and can be called on any cleanup. - Most frameworks will handle DOM regeneration on rerenders themselves. Should you need to clean up the DOM for arbitrary reasons yourself, this snippet may come in handy:
const polarstern = document.getElementById('polarstern-wrapper') const stellamaris = document.createElement('div') stellamaris.id = 'polarstern' polarstern?.parentElement?.replaceChild(stellamaris, polarstern)
Child documents
Locales
Locale Key | German default | English default |
---|---|---|
diplan.error.metaInformationRetrieval | Der Bezug von Metadaten zur gezeichneten Geometrie ist fehlgeschlagen. Die Geometrie wird ohne Metadaten weitergereicht. | |
diplan.geoEditing.tools.drawPolygon | Neue Fläche einzeichnen | |
diplan.geoEditing.tools.drawCircle | Kreis einzeichnen | |
diplan.geoEditing.tools.merge | Flächen kombinieren | |
diplan.geoEditing.tools.cut | Durchschneiden | |
diplan.geoEditing.tools.duplicate | Duplizieren | |
diplan.geoEditing.tools.lasso | Lasso | |
diplan.geoEditing.tools.edit | Bearbeiten | |
diplan.geoEditing.tools.translate | Fläche bewegen | |
diplan.geoEditing.tools.delete | Fläche entfernen | |
diplan.linkButton.label | Vollbildmodus verlassen | |
diplan.linkButton.labelSmall | In den Vollbildmodus wechseln | |
plugins.iconMenu.hints.diplanLayerChooser | Kartenauswahl | |
plugins.iconMenu.hints.geoEditing | Digitalisierungswerkzeuge | |
plugins.layerChooser.xplanTitle | XPlanGML |