@geoportallux/lux-3dviewer-themesync
v1.5.1
Published
> Part of the [VC Map Project](https://github.com/virtualcitySYSTEMS/map-ui)
Readme
lux-3dviewer-themesync
Part of the VC Map Project
This plugin fetches themes from the Geoportail Luxembourg and maps them to a VCS module config. The module config includes layers, contentTree and i18n (for translations) entries.
Development
To further develop the plugin run: npm start
Config parameters
These params (mostly URLs) must be indicated in the plugin config when deployed:
luxThemesUrl- URL to themes API (requests to this URL include credentials accoring to the credentials property in this config)luxI18nUrl- URL to translationsluxOwsUrl- URL to OGC web services (thematic WMS and WMTS displayed as WMS to include fetaure info)luxWmtsUrl- URL to WMTS (baselayers)luxProxyUrl- URL to proxy service for protected layers (requests to this URL always include credentials)luxLegendUrl- URL to legendsluxDefaultBaselayer- name of the default baselayer to displaycredentials- RequestCredentials property for theme fetching:omit,same-origin(default) orinclude(for dev only)
Deploy plugin within map-ui
- Add plugin dependency in desired version to
plugins/package.json:
"dependencies": {
...
"@geoportallux/lux-3dviewer-themesync": "...",
...- Add plugin with desired values to map-ui module configuration:
{
"name": "@geoportallux/lux-3dviewer-themesync",
"entry": "plugins/@geoportallux/lux-3dviewer-themesync/index.js",
"luxThemesUrl": "...",
"luxI18nUrl": "...",
"luxOwsUrl": "...",
"luxWmtsUrl": "...",
"luxProxyUrl": "...",
"luxLegendUrl": "...",
"luxDefaultBaselayer": "...",
"credentials": "...",
},Build the npm package
Use the following commands to increase the version and push a new tag, which builds a new version as npm package:
npm version 1.0.0 --no-git-tag-version
git add .
git commit -m "1.0.0"
git tag v1.0.0
git push origin main v1.0.0 # replace "origin" with your remote repo name