terracotta
terracotta copied to clipboard
Write a client library
Terracotta would only be a complete A-Z solution if we also provided a client library in Javascript to do some of the heavier lifting.
I don't see this happen anytime soon, since we would need someone who is way way better at Javascript than me.
Perhaps just write some docs for use with an existing solution e.g. https://terria.io/
Great point, thanks!
For the record, it's really easy to do on something like geojson.io:
- Click
Meta -> Add Map Layer
- Enter URL to dataset in the form
http://localhost:5000/singleband/key1/.../keyN/{z}/{x}/{y}.png
(with Terracotta serving onlocalhost:5000
in this case; you can get the keys fromhttp://localhost:5000/datasets
)
Works similarly on everything that uses Leaflet.JS, via map.addLayer
.
I didn't know terria.io, but it looks really interesting, so thanks for the pointer.