From 4c9a37c831d229ca8509a2fbf3c3e114774e161c Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Sat, 27 Apr 2019 13:35:51 +0100 Subject: [PATCH] Check exten when rendering highlight tiles --- app/src/tiles/tileserver.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/tiles/tileserver.js b/app/src/tiles/tileserver.js index eb793959..d60298e0 100644 --- a/app/src/tiles/tileserver.js +++ b/app/src/tiles/tileserver.js @@ -209,6 +209,10 @@ function handle_highlight_tile_request(req, res) { return } + if (outside_extent(z, x, y)) { + return empty_tile() + } + render_tile('highlight', int_z, int_x, int_y, geometry_id, function (err, im) { if (err) throw err