Commit Graph

45 Commits

Author SHA1 Message Date
Tom Russell
ba501dfc3c
Merge pull request #466 from mz8i/feature/72-increase-max-zoom
Allow zoom level 19 with OS basemap interpolation
2019-11-12 10:43:40 +00:00
Maciej Ziarkowski
0240e94adc Allow zoom level 19 with OS basemap interpolation 2019-10-08 17:40:30 +01:00
Maciej Ziarkowski
27ba5310bb Cache base layers but don't clear on bbox clear 2019-10-07 17:27:22 +01:00
Maciej Ziarkowski
ed999e1311 Use gravity instead of top/left for tile composite 2019-10-07 17:01:41 +01:00
Maciej Ziarkowski
14b79ce891 Simplify tile stitching with sharp
The new method uses the composite() method of sharp
to reduce the number of times a PNG buffer is created.
The number could be further reduced from two to one,
if the issue #1908 from lovell/sharp is resolved so that
composite and resize can be chained without an
intermediate call to .png().toBuffer()
2019-10-07 16:21:36 +01:00
Maciej Ziarkowski
5417b5c8b6 Use functions instead of classes in tile rendering 2019-10-07 13:34:22 +01:00
mz8i
606a36ce6c
Activate type category and colour map (#446) 2019-10-02 14:34:44 +01:00
mz8i
fa089f10e1
Feature/435 activate sustainability (#445)
* Add colour scale definition for sustainability DEC

* Add sustainability DEC data render definition

* Activate sustainability category
2019-10-02 13:32:00 +01:00
mz8i
ecc928b910
Use tile scale cache suffix for scale above 1 only (#440)
The tile params formatting is used for caching.
Don't add the @1x suffix for scale 1, in order to
re-use old cache from before retina tiles were enabled
2019-10-01 17:03:08 +01:00
Maciej Ziarkowski
269e6ba989 Add tileset param validation in tile server 2019-09-17 18:35:05 +01:00
Maciej Ziarkowski
fe3f02bd85 Allow missing base layer query param for highlight 2019-09-17 18:19:21 +01:00
Maciej Ziarkowski
5adb8e6146 Use new renderers in tile server 2019-09-17 18:11:42 +01:00
Maciej Ziarkowski
5995adeb88 Add data and rendering definition 2019-09-17 18:03:20 +01:00
Maciej Ziarkowski
ae0202d6da Add blank, branching renderers 2019-09-17 18:01:48 +01:00
Maciej Ziarkowski
472e91f275 Add cached renderer 2019-09-17 18:01:23 +01:00
Maciej Ziarkowski
70c05071a8 Add windowed renderer 2019-09-17 18:01:09 +01:00
Maciej Ziarkowski
4b0d51dd80 Add stitch renderer 2019-09-17 18:00:49 +01:00
Maciej Ziarkowski
bd467ceb3b Add data source renderer 2019-09-17 17:59:20 +01:00
Maciej Ziarkowski
5cfa487844 Add tile cache 2019-09-17 17:58:27 +01:00
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