Skip to content
Rich Signell edited this page Oct 17, 2018 · 16 revisions

Welcome to the terriajs-dive wiki!

tips & links

tips

{
    "port": 3001,

    "allowProxyFor" : [
        "nicta.com.au",
        "gov.au",
        "csiro.au",
        "arcgis.com",
        "argo.jcommops.org",
        "www.abc.net.au",
        "geoserver.aurin.org.au",
        "mapsengine.google.com",
        "s3-ap-southeast-2.amazonaws.com",
        "adelaidecitycouncil.com",
        "www.dptiapps.com.au",
        "geoserver-123.aodn.org.au",
        "geoserver.imos.org.au",
        "nci.org.au",
        "static.nationalmap.nicta.com.au",
        "githubusercontent.com",
        "gov",
        "org",
        "edu",
        "us",
        "ingv.it",
        "gov.uk",
        "gov.nz"
    ]
}
  • I want my share URL to point to a gist that contains the JSON, so that I don't have to worry about stuffing all the config in a very long URL. You can configure this by adding some lines to the end of <TerriaMap>/devserverconfig.json file, like this (for the accessToken I used a github personal access token with scope to create gist):
        "gov.uk",
        "gov.nz"
    ],
shareUrlPrefixes: {
        "g": {
            service: "gist",
            accessToken: "b6d26a2358xxxxxxxxxxxx0dd028064ad6f2a622"
        }
    },
newShareUrlPrefix: "g"
}

links

Clone this wiki locally