Skip to content

Commit

Permalink
Merge pull request #504 from cmv/feature/add-support-for-wfs-layer
Browse files Browse the repository at this point in the history
Feature/add support for wfs layer
  • Loading branch information
DavidSpriggs committed Feb 10, 2016
2 parents 7607d82 + d99c4c5 commit 9c93231
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions viewer/js/gis/dijit/LayerControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ define([
csv: './LayerControl/controls/CSV',
georss: './LayerControl/controls/GeoRSS',
wms: './LayerControl/controls/WMS',
wfs: './LayerControl/controls/WFS',
kml: './LayerControl/controls/KML',
vectortile: './LayerControl/controls/VectorTile',
webtiled: './LayerControl/controls/WebTiled',
Expand Down
25 changes: 25 additions & 0 deletions viewer/js/gis/dijit/LayerControl/controls/WFS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
define([
'dojo/_base/declare',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dijit/_Contained',
'./_Control', // layer control base class
'./../plugins/legendUtil'
], function (
declare,
_WidgetBase,
_TemplatedMixin,
_Contained,
_Control
) {
'use strict';

var WFSControl = declare([_WidgetBase, _TemplatedMixin, _Contained, _Control], {
_layerType: 'vector', // constant
_esriLayerType: 'wfs', // constant
_layerTypeInit: function () {
this._expandRemove();
}
});
return WFSControl;
});
1 change: 1 addition & 0 deletions viewer/js/viewer/_MapMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ define([
tiled: 'ArcGISTiledMapService',
vectortile: 'VectorTile',
webtiled: 'WebTiled',
wfs: 'WFS',
wms: 'WMS',
wmts: 'WMTS' //untested
};
Expand Down

0 comments on commit 9c93231

Please sign in to comment.