diff options
author | Dave Arter <davea@mysociety.org> | 2017-11-29 11:11:39 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-02-13 12:39:50 +0000 |
commit | df717b92c41418b287140ddb999c64f21b4fb6ca (patch) | |
tree | ed14b775b68837230d3111a3353a2b579cc1444f /web/js/map-OpenLayers.js | |
parent | 220432931da1472eb9d403df6419aa86b34d3ee6 (diff) |
Make asset layer WFS configuration more customisable
This commit makes it easier to customise the way asset layers are loaded
over WFS, including:
- Adds support for WFS layers via GET method
The standard HTTP method for WFS GetFeature requests is POST, but
some WFS services only support GET. OpenLayers.Protocol.WFS is
hardcoded to use POST, but we can use OpenLayers.Protocol.HTTP
instead to use GET.
The options passed to fixmystreet.add_assets should include a
'http_options' object which configures the HTTP protocol.
- Allows HTTP asset layers to provide their own format
This makes it simpler to use GeoJSON, for example, instead of the
default of GML.
- Asset layers can provide their own loading strategy
The default strategy can be overridden if, for example, you want to
use a BBOX strategy with a smaller ratio in order to load fewer
features at a time.
Diffstat (limited to 'web/js/map-OpenLayers.js')
0 files changed, 0 insertions, 0 deletions