/magda-ui-plugin-component-open-3d-dataset

A Magda UI Plugin Component that allows users to open 3D datasets from DT instances

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Magda Plugin UI Component Open 3D Dataset

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

How to Run Locally

yarn start

Access: http://localhost:8080/

How to Deploy with Magda / Config

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:

magda-io/magda#3099