diff options
author | Chris Mytton <chrism@mysociety.org> | 2020-01-21 16:32:46 +0000 |
---|---|---|
committer | Chris Mytton <chrism@mysociety.org> | 2020-02-20 14:01:10 +0000 |
commit | fe62503ff288efd655b18aaab970a1f2c725eebe (patch) | |
tree | 60de5a9710b912a29128c73cb54d218ee4fa68bc /docs/_posts/2016-12-16-v2.0-javascript-improvements.md | |
parent | 0f7037f9db5d73c1020468e68ce852e585ba6a19 (diff) |
[Peterborough] Disable pin snapping for new tree requests
We don't want to plant trees where there are already trees, so we add a
separate layer for new tree requests, and disable pin snapping for that
layer.
This adds a new option for layers named "relevant". If provided it will
be called with an options object, allowing you to check ".category" and
".group" and return a boolean for whether you want to display the layer
based on the passed options.
Note: You still need to provide an "asset_group" option even if you use
the "relevant" option as this is used elsewhere.
The "regular" tree-points layer uses this to exclude just the new trees
subcategory from being displayed.
Diffstat (limited to 'docs/_posts/2016-12-16-v2.0-javascript-improvements.md')
0 files changed, 0 insertions, 0 deletions