-
Notifications
You must be signed in to change notification settings - Fork 0
Home
garevna edited this page Apr 27, 2021
·
7 revisions
You need to install the package dgtek-map manually:
yarn add dgtek-map && mv node_modules/dgtek-map/dist/map.worker.js public
Application needs the following environment variables to be set
VUE_APP_AUTHORIZATION_KEY=...
VUE_APP_BUILDINGS_API_HOST=...
VUE_APP_API_HOST=...
VUE_APP_GEOSCAPE_KEY=...
VUE_APP_SECRET=...
VUE_APP_PUBLIC_PATH_PRODUCTION=...
This app uses two web-workers:
- admin.worker
- map.worker
Each web-worker is responsible for the local database and AJAX-requests to the remote server.
To work correctly with web-worker the app has the controller.
Due to the app controller each component of the app can use the web-worker by calling the appropriate inherited methods. App controller will transform this method call to appropriate message for web-worker.
When web-worker responses on requests, the app controller converts this web-worker's message to the suitable app's event.