Commit Graph

76 Commits

Author SHA1 Message Date
Maciej Ziarkowski
de34280a2e Add tile server utilities 2019-09-17 17:54:35 +01:00
Maciej Ziarkowski
bb6966dccb Add tile server types 2019-09-17 17:50:46 +01:00
Maciej Ziarkowski
bc060bb666 Allow custom highlight colour based on data layer 2019-09-10 16:58:14 +01:00
Maciej Ziarkowski
4421930942 Squash TypeScript errors and fix bugs
Most errors highglighted by TS were due to a lack of type definitions
and were ignored by settings types to `any`.
Some minor bugs were resolved where the fix was obvious.
TODO marks left where `any` needs to be later removed or bugfix verified
2019-08-09 18:49:43 +01:00
Tom Russell
f6e933ff8f Lint empty lines 2019-05-27 18:33:36 +01:00
Tom Russell
9b96872922 Lint prop-types, camelCase 2019-05-27 18:26:29 +01:00
Tom Russell
af9c23d883 Lint 4-space indent 2019-05-27 16:39:16 +01:00
Tom Russell
907afa29f0 Lint single quotes 2019-05-27 16:31:48 +01:00
Tom Russell
e540003e2f Lint no-unused 2019-05-27 16:25:31 +01:00
Tom Russell
ebc662280c Lint curly braces 2019-05-27 16:20:00 +01:00
Tom Russell
4362c9c947 Rewrite cache to allow expiry, use promises
- tileserver changes use of cache (slightly simplified from callbacks)
- cache methods return promises
- add 'remove' method to cache, with remove_all_at_bbox helper
- from api/building.js, call remove after successful db updates
2019-04-27 15:56:16 +01:00
Tom Russell
cfc00f348b Brief header note on tile.tileserver 2019-04-27 13:36:17 +01:00
Tom Russell
4c9a37c831 Check exten when rendering highlight tiles 2019-04-27 13:35:51 +01:00
Tom Russell
0709deae83 Return 1px transparent empty tile 2019-04-27 13:35:11 +01:00
Tom Russell
c45394cbb2 Add doc note on mapnik styles in tiles.tile 2019-04-27 13:26:03 +01:00
Tom Russell
5392ad0606 Render empty tiles outside of area of interest 2019-02-24 20:07:22 +00:00
Tom Russell
2d8b62fb84 Lint spacing 2019-02-24 19:28:11 +00:00
Tom Russell
4fc4d314fd Rewrite tileserver to use cache, stitch low-zoom tiles progressively 2019-02-24 19:23:59 +00:00
Tom Russell
65fd7c5f22 Improve cache logging, update ruleset 2019-02-24 19:23:21 +00:00
Tom Russell
a8485643e0 Add xyz method to tile 2019-02-24 19:23:00 +00:00
Tom Russell
669f8ceadb Simplify highlight style (geom only) 2019-02-24 19:22:18 +00:00
Tom Russell
77849531a6 Use node-fs package to patch fs.mkdir 2019-02-24 15:30:37 +00:00
Tom Russell
c5ebcd2df8 Sketch in cache 2019-02-24 15:15:52 +00:00
Tom Russell
af46067018 Push image encoding down to tile render, and do async 2019-02-24 13:49:16 +00:00
Tom Russell
de5ba78d3f Better split of responsibilities for tile routing/rendering 2019-02-24 13:34:40 +00:00
Tom Russell
961441c5c0 Move api/tiles modules to subfolders 2019-02-24 12:17:59 +00:00