Check exten when rendering highlight tiles

This commit is contained in:
Tom Russell 2019-04-27 13:35:51 +01:00
parent 0709deae83
commit 4c9a37c831

View File

@ -209,6 +209,10 @@ function handle_highlight_tile_request(req, res) {
return return
} }
if (outside_extent(z, x, y)) {
return empty_tile()
}
render_tile('highlight', int_z, int_x, int_y, geometry_id, function (err, im) { render_tile('highlight', int_z, int_x, int_y, geometry_id, function (err, im) {
if (err) throw err if (err) throw err