diff options
author | Dave Arter <davea@mysociety.org> | 2018-01-11 20:47:28 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-02-13 12:39:50 +0000 |
commit | a66db9d58a29ada7080837c6223fec78cdd444cc (patch) | |
tree | d19cba4c7cabf8d46ab054c90b32a33b1c4430f5 /web/js/dashboard.js | |
parent | df717b92c41418b287140ddb999c64f21b4fb6ca (diff) |
Improvements to asset layer user interaction
This commit allows asset layers to be added to the map that have more
complex behaviours than simply 'click a marker'.
- Layers can be non-interactive and/or always visible
Previously an asset layer would only be shown when its associated
category was chosen from the dropdown. You can now add layers which
are always visible, as well as ignoring user input. Useful for, e.g.
showing an LLPG overlay on the map.
- Stylemaps can be provided for individual layers
This means you can, for example, have custom rules for styling
features based on their attributes or other complex rules.
- Functions can be used for the feature/report field mapping
Instead of a one-to-one mapping between feature attributes and
fields on the new report form, you can provide a callback function
which can provide a calculated value to the report form.
Diffstat (limited to 'web/js/dashboard.js')
0 files changed, 0 insertions, 0 deletions