Skip to content

Commit

Permalink
Adding support for the WFS layer added to the ESRI API at v3.14.
Browse files Browse the repository at this point in the history
This layer is still considered beta in version 3.15.
  • Loading branch information
tmcgee committed Jan 29, 2016
1 parent a385dfa commit a6a565e
Show file tree
Hide file tree
Showing 3 changed files with 28 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
26 changes: 26 additions & 0 deletions viewer/js/gis/dijit/LayerControl/controls/WFS.js
Original file line number Diff line number Diff line change
@@ -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;
});
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 a6a565e

Please sign in to comment.