Skip to content

Commit

Permalink
Add option of only requesting some WFS attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Nov 11, 2016
1 parent 8168f6a commit cab0360
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/cobrands/bristol/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var options = {
min_resolution: 0.00001,
asset_id_field: 'COD_ASSET_ID',
asset_type: 'spot',
propertyNames: [ 'COD_ASSET_ID', 'COD_USRN' ],
attributes: {
asset_id: 'COD_ASSET_ID',
usrn: 'COD_USRN'
Expand Down
3 changes: 3 additions & 0 deletions web/cobrands/fixmystreet/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ fixmystreet.add_assets = function(options) {
if (fixmystreet.wmts_config) {
protocol_options.srsName = fixmystreet.wmts_config.map_projection;
}
if (options.propertyNames) {
protocol_options.propertyNames = options.propertyNames;
}
var protocol = new OpenLayers.Protocol.WFS(protocol_options);
var layer_options = {
fixmystreet: options,
Expand Down

0 comments on commit cab0360

Please sign in to comment.