diff --git a/viewer/js/gis/dijit/LayerControl.js b/viewer/js/gis/dijit/LayerControl.js index ec2d89265..05936dd0c 100644 --- a/viewer/js/gis/dijit/LayerControl.js +++ b/viewer/js/gis/dijit/LayerControl.js @@ -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', diff --git a/viewer/js/gis/dijit/LayerControl/controls/WFS.js b/viewer/js/gis/dijit/LayerControl/controls/WFS.js new file mode 100644 index 000000000..7ce625934 --- /dev/null +++ b/viewer/js/gis/dijit/LayerControl/controls/WFS.js @@ -0,0 +1,26 @@ +define([ + 'dojo/_base/declare', + 'dijit/_WidgetBase', + 'dijit/_TemplatedMixin', + 'dijit/_Contained', + './_Control', // layer control base class + './../plugins/legendUtil' +], function ( + declare, + _WidgetBase, + _TemplatedMixin, + _Contained, + _Control, + legendUtil +) { + 'use strict'; + + var WFSControl = declare([_WidgetBase, _TemplatedMixin, _Contained, _Control], { + _layerType: 'vector', // constant + _esriLayerType: 'wfs', // constant + _layerTypeInit: function () { + this._expandRemove(); + } + }); + return WFSControl; +}); \ No newline at end of file diff --git a/viewer/js/viewer/_MapMixin.js b/viewer/js/viewer/_MapMixin.js index 8d272db58..ca0e9a8c5 100644 --- a/viewer/js/viewer/_MapMixin.js +++ b/viewer/js/viewer/_MapMixin.js @@ -76,6 +76,7 @@ define([ tiled: 'ArcGISTiledMapService', vectortile: 'VectorTile', webtiled: 'WebTiled', + wfs: 'WFS', wms: 'WMS', wmts: 'WMTS' //untested };