Petr Sloup
5048388d1f
Try to reduce number of broken labels on tile edges ( #344 , #347 )
2019-12-30 09:11:53 +01:00
Yuri Astrakhan
7f8be27844
Update code to ES6
...
* var -> let / const
* [].forEach -> for (... of ...)
* '...' + var -> template strings `...${var}`
* function -> arrow functions `=>`
* use === and !== instead of == and !=
2019-12-21 14:09:20 -05:00
Yuri Astrakhan
736e8d393a
Upgrade to node10, latest dependencies
...
use node10 (latest node that has binary built @mapbox/mapbox-gl-native v5.0.2)
use latest canvas and sharp API
2019-12-21 12:09:07 -05:00
Daniel Korp
1c24d12b0d
Minor fix: Don't multiply tileMargin with scale since the renderer is already taking care of scaling
2019-11-13 15:10:13 +01:00
Petr Sloup
f77ccd06af
Merge pull request #379 from stefslon/tile_margin
...
Add tileMargin option
2019-10-02 12:26:49 +02:00
Petr Sloup
aa7ae575d0
Flatten 3D buildings when rendering to remove artifacts
2019-08-26 12:10:49 +02:00
stefslon
17a73b1d4a
Add tileMargin option
2019-08-08 21:57:51 -04:00
Eric Xanderson
ba62f0bf30
verbose output empty tile warning
...
Empty tile warning details; definitely what you would expect if there's not a catastrophic error, but you're getting blank tiles.
such as: ```
MBTiles error, serving empty { Error: SQLITE_CORRUPT: database disk image is malformed
lily_tile_server | at Error (native) errno: 11, code: 'SQLITE_CORRUPT' }
```
https://github.com/klokantech/tileserver-gl/issues/323
2019-04-23 20:51:39 -05:00
Alban Mouton
c99a1a5425
Merge remote-tracking branch 'klokantech/master' into public_url
...
# Conflicts:
# src/main.js
# src/server.js
2018-12-19 09:53:40 +01:00
Rani Pinchuk
81f65af3a8
Fix log message when incorrect header exception is caught
2017-11-09 18:00:41 +01:00
Rani Pinchuk
a0eb5800fd
Catch incorrect header exceptions
2017-11-03 16:53:45 +01:00
Tim Schaub
3d48485475
Reject on font loading error
2017-10-23 10:01:16 -06:00
Tim Schaub
c060dedf20
Avoid swallowing rejected font loading promise
2017-10-23 10:01:01 -06:00
Alban Mouton
dc6be5047c
missing public_url in tiles urls
2017-10-18 14:49:10 +02:00
Petr Sloup
82f179b07c
Minor fix for correctly serving empty responses for missing tiles
2017-10-02 13:56:32 +02:00
Osmo Salomaa
89878015bb
Make raster tile renderer pool sizes configurable
2017-10-01 18:40:16 +03:00
Petr Sloup
d9f8582279
Remove node-pngquant-native dependency
...
- Unnecessary native dependency
- It was disabled by default
- Has issues on certain platforms
- Not optimal for production use (performance)
2017-09-15 17:06:42 +02:00
Tim Schaub
7bdb7afcb9
Reuse the function for creating empty responses
2017-08-23 11:30:05 -04:00
Tim Schaub
2e46700cd9
Try to create the appropriate data type on http errors
2017-08-22 14:17:53 -04:00
Petr Sloup
42f24c2c99
Add concept of data decorator function
2017-07-28 09:53:32 +02:00
Petr Sloup
698c527e94
Change endpoint URLs ( close #154 )
...
- styles at /style/{id}/style.json
- rendered tiles at /style/{id}/{z}/{x}/{y}.{format}
- TileJSONs at /style/{id}.json
2017-06-22 16:37:32 +02:00
Petr Sloup
8fd7a9b42b
Update dependencies to get ready for node v6
2017-06-22 16:37:32 +02:00
Tim Schaub
de83021c3d
Log errors to stderr and return
2017-06-20 08:09:59 -07:00
Petr Sloup
bdc3d20524
Use promises instead of async in font concatenation (remove async dependency)
2017-05-10 10:22:39 +02:00
Petr Sloup
d30027e992
Modify all serve_*
modules to return a Promise (preparation for #140 )
2017-05-10 08:56:43 +02:00
Petr Sloup
c233d23523
Fix broken static maps bounds overlay (for very large areas)
2017-05-05 16:15:10 +02:00
Petr Sloup
9545c2594e
Handle scale
in query-based static endpoint
2017-04-14 12:05:03 +02:00
Petr Sloup
8ea665297f
Minor fix in style path handling (allow absolute paths)
2017-04-07 18:53:11 +02:00
Petr Sloup
28790fda30
Alternative query-based static endpoint
2017-04-03 15:14:40 +02:00
Petr Sloup
640038a115
Add support for watermarks ( close #130 )
2017-03-15 17:06:26 +01:00
Petr Sloup
49a8562441
Support for proj4 string in mbtiles metadata (for static maps) ( close #127 )
2017-03-15 16:45:26 +01:00
Petr Sloup
f8949c1aa9
Configurable scale factors ( close #121 )
...
Also changes default maximum from `4x` to `3x`
2017-03-15 12:09:18 +01:00
Petr Sloup
0673c8990a
Add option to disable static maps ( close #129 )
2017-03-14 16:12:19 +01:00
Petr Sloup
2f2e4b8f42
Remap data link also for the rendered tiles
2017-02-01 14:57:38 +01:00
Petr Sloup
f14d8b1e57
Update sharp dependency
2017-01-20 10:20:06 +01:00
Petr Sloup
14350a4338
Update mapbox-gl-native dependency
2017-01-20 10:11:10 +01:00
Petr Sloup
6d68c93871
Fix broken requires
2017-01-12 14:05:02 +01:00
Petr Sloup
b9930dd195
Fix interim empty tile generation for raster layers
2017-01-10 15:47:56 +01:00
Petr Sloup
2d29a21596
Do not add basename to tilejson and remove sensitive properties (see #69 )
2016-12-20 13:55:36 +01:00
Petr Sloup
945e568b2b
Merge pull request #93 from ArsenyN/bugfix-RemoteVectorSource
...
Fix: Right code for working with external vector tiles.
2016-12-20 13:21:44 +01:00
Arseny Novikov
37db733e02
Fix for this comment: https://github.com/klokantech/tileserver-gl/issues/91#issuecomment-267939138
...
With this commit code will have right behaviour with external vector tiles.
2016-12-19 14:13:03 +03:00
Petr Sloup
509d32da68
Improved font serving
2016-12-09 13:19:34 +01:00
Petr Sloup
bbc14abb4a
Fix sprite and glyph loading from remote URLs
2016-12-08 18:22:11 +01:00
Petr Sloup
bcac161a25
Minor route pattern improvement
2016-12-05 23:21:31 +01:00
Petr Sloup
9d362a5b5e
Experimental static endpoints working with raw mercator coordinates
2016-12-05 23:02:48 +01:00
Petr Sloup
345d96d5e6
Fix static endpoints for (near-)whole-world queries ( close #63 )
2016-10-21 14:49:39 +02:00
Petr Sloup
18ba6f5059
Ignore tiling scheme of the source for internal meta urls ( #54 )
2016-09-30 09:50:05 +02:00
Petr Sloup
a8fd1b38b7
Return 404 for negative zoom levels on static endpoint
2016-08-25 11:08:19 +02:00
Petr Sloup
de60a0a076
Disable png quantization by default for now
2016-08-25 10:23:42 +02:00
Petr Sloup
90b9af3d95
Allow max image side length to be configurable
2016-08-25 09:41:33 +02:00
Petr Sloup
78aea26318
Allow @4x requests
2016-08-25 09:38:03 +02:00
Petr Sloup
de7f5f0366
Allow and use floating-point zoom levels in the static endpoints
2016-08-25 09:22:12 +02:00
Petr Sloup
e9cad399c9
New "mbtiles://{name}" reference syntax ( #27 )
2016-08-21 10:08:17 +02:00
Petr Sloup
ee1cb21dfd
Use pngquant ( close #43 ); rename option formatEncoding->formatQuality
2016-08-21 09:41:28 +02:00
Petr Sloup
b4d6490e00
Large refactoring of usage (only mbtiles, default styles, ...) ( #27 )
2016-08-20 13:31:11 +02:00
Petr Sloup
3cf8ce9903
Add mbtiles_data: "metaprotocol"
2016-08-20 10:28:45 +02:00
Petr Sloup
845e31b3f2
More sensible errors for non-existent mbtiles
2016-08-19 08:25:12 +02:00
Petr Sloup
7accdfa7da
Very early CPU-cheap 304 based solely on last-modified
2016-07-27 12:31:47 +08:00
Petr Sloup
a0fbf7fb79
Fix font compositing ( close #32 )
2016-07-26 18:56:32 +07:00
Petr Sloup
dbaca66b2c
Add `Last-Modified' headers to improve caching
2016-07-26 10:43:33 +08:00
Petr Sloup
3c29cb0f65
ETag/caching fixes and improvements
2016-07-13 12:56:59 +02:00
Petr Sloup
6100013718
Fix serving the same style twice
2016-06-29 20:28:56 +02:00
Petr Sloup
4af6fb686f
Change bearing and pitch format in static url
2016-06-27 07:56:54 +02:00
Petr Sloup
2d2c43aeb5
Support bearing in path overlays
2016-06-27 07:42:38 +02:00
Petr Sloup
900ca4ed3e
Refactor area-based static maps urls
2016-06-27 07:18:48 +02:00
Petr Sloup
9d63634078
Rename path
static map type to auto
2016-06-27 07:09:24 +02:00
Petr Sloup
0b98651b48
Add dynamic path queries to all static endpoints
2016-06-27 07:08:27 +02:00
Petr Sloup
d3aeab5d89
Decrease image size limit to 2048x2048
2016-06-27 06:53:29 +02:00
Petr Sloup
01bff86c6d
Initial implementation of path rendering
2016-06-24 12:26:26 +02:00
Petr Sloup
daa94dc806
Chain attributions from mbtiles into the tilejson of the rendered tiles
2016-05-04 13:13:37 +02:00
Petr Sloup
9edf7c0cae
Fix empty raster tiles
2016-05-03 17:42:47 +02:00
Petr Sloup
54073cecce
Simplify URL for "static"
...
/styles/{id}/rendered/static/... -> /styles/{id}/static/...
2016-04-22 15:50:56 +02:00
Petr Sloup
a25ce62662
New urls for source data tiles and rendered tiles
2016-04-22 12:33:20 +02:00