Skip to content

Instantly share code, notes, and snippets.

@owlfox
Created November 5, 2019 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owlfox/fa80e0398590d537062322e849163601 to your computer and use it in GitHub Desktop.
Save owlfox/fa80e0398590d537062322e849163601 to your computer and use it in GitHub Desktop.
terria.js catalog example file with a Taiwan wms service
{
"corsDomains": [],
"homeCamera": {
"north": 25,
"east": 122,
"south": 21.5,
"west": 120
},
"baseMapName": "Australian Topography",
"initialViewerMode": "3dSmooth",
"services": [],
"catalog": [
{
"name": "範例資料集",
"type": "group",
"preserveOrder": true,
"isOpen": true,
"items": [
{
"name": "ABC Photo Stories (2009-2014)",
"description": "Australia Broadcasting Company stories from 2009-2014 with accompanying photos.\n\nThis dataset demonstrates the ability to show users a custom feature info panel when they click on a feature on the map.",
"type": "csv",
"url": "test/localphotostories20092014.csv",
"featureInfoTemplate": {
"template": "<div class='abc'><small>{{Date}}</small>{{#Primary image}}<figure><img src='{{Primary image}}'/><figcaption>{{Primary image caption}}</figcaption></figure>{{/Primary image}}<p><a target='_blank' href={{URL}}>Read More</a></div>"
},
"tableStyle": {
"dataVariable": "State",
"timeColumn": null
}
},
{
"name": "地政司 縣(市)行政區域界線(臺灣本島地區)",
"description": "TBD",
"dataCustodian": "TBD",
"url": "http://ogcmap.tgos.nat.gov.tw/35123/SimpleWMS.aspx",
"layers": "city",
"type": "wms"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment