Setting up TerriaJS for NFWF - neracoos-open/NFWF GitHub Wiki
Useful links
-
Test TerriaJS instance at NERACOOS: http://neracoos.org:8201
-
Data Source Editor: http://terria.io/DataSourceEditor/ (e.g. try scrolling to the bottom, dropping the URL "http://neracoos.org/terriaconfig/neracoos.json" in there, and clicking "load")
-
Developer's Handbook: https://github.com/NICTA/nationalmap/wiki/Developers'-Handbook
-
Presentation to the USGS Tech Stack Working Group on "Australia's National Map and the TerriaJS Platform" (https://www.youtube.com/playlist?list=PLwZr38uPmCbTn8BxpRXaipBmycYL21hCI)
-
Presentation to the USGS Tech Stack Working Group on "Intro to Cesium": (https://www.youtube.com/watch?v=cEXneKlofbc)
TerriaJS tips
- you can set autoplay to false so that time dependent layers don't start playing automatically, which is never what I want. In the old UI: https://github.com/rsignell-usgs/map/blob/rich/index.js#L241 In the new UI: Open up wwwroot/config.json and change it to look like this
{
/* Names of init files (in wwwroot/init), without the .json extension, to load by default */
initializationUrls: [
"terria",
"test"
],
parameters: {
autoPlay: false,
-
You can set the initial view to be the gulf of maine https://github.com/rsignell-usgs/map/blob/rich/wwwroot/testing/nfwf.json#L15-L20
-
You can change the default base map: https://github.com/rsignell-usgs/map/blob/rich/wwwroot/testing/nfwf.json#L21
-
Add the domain of every data source to the
proxyDomains
list inconfig.json
: https://github.com/rsignell-usgs/ehzrap/blob/master/config/config.json#L2-L27 -
If the server supports CORS, then add it to the
corsDomains
list in the dataset specification file: https://github.com/rsignell-usgs/ehzrap/blob/master/config/config.json#L2-L27