A Magda UI Plugin Component that allows users to open 3D datasets from DT instances.
More about Magda UI Plugin Component see: https://github.com/magda-io/magda-plugin-ui-component-examples
yarn start
Access: http://localhost:8080/
1> Build the bundle
yarn build
2> Upload files in dist
folder to your own web service.
3> Config Magda Web Server Module
web-server:
externalUIComponents:
# for production deployment, you will want to host the JS bundle yourself
- "https://github.com/magda-io/magda-ui-plugin-component-open-3d-dataset/releases/download/v2.0.0/Open3dDatasetSection.js"
extraConfigData:
"3dDatasetDigitalTwinInstances":
# It's possible to add support of more than one DT instances
- sourceDataDomain: "xxx.xx.xx"
url: "https://my.digitaltwin.com.au/"
You also need to configure Magda Gateway module CSP
config accordingly to make sure scripts from exmaple.com
are allowed. e.g.:
gateway:
csp:
directives:
scriptSrc:
- "'self'"
- "'unsafe-inline'"
- "blob:"
# the following two domains are for downloading Magda UI plugins from github release
- github.com
# github.com will issue 301 redirection to this domain
- objects.githubusercontent.com
For more information, please refer to this issue: