🤖 Merge PR #50184 [arcgis-js-api] Update for version 3.35 by @dasa

This commit is contained in:
Dasa Paddock
2020-12-18 10:54:12 -08:00
committed by GitHub
parent 0cdaceec05
commit 3b4e1e77f4
2 changed files with 8 additions and 2 deletions

View File

@@ -19,3 +19,8 @@ class MapController {
this.map = new Map(this.mapDiv, mapOptions);
}
}
import WFSLayer = require("esri/layers/WFSLayer");
const wfsLayer = new WFSLayer({ url: "https://esri.com" });
wfsLayer.fromJson({}, () => {});

View File

@@ -1,4 +1,4 @@
// Type definitions for ArcGIS API for JavaScript 3.34
// Type definitions for ArcGIS API for JavaScript 3.35
// Project: https://developers.arcgis.com/javascript/3/
// Definitions by: Esri <https://github.com/Esri>
// Bjorn Svensson <https://github.com/bsvensson>
@@ -11902,8 +11902,9 @@ declare module "esri/layers/WFSLayer" {
/**
* Creates a WFSLayer using the provided JSON object.
* @param json The input JSON.
* @param callback The function to call when the method has completed.
*/
fromJson(json: Object): void;
fromJson(json: Object, callback?: Function): void;
/** Redraws all the graphics in the layer. */
redraw(): void;
/** Refreshes the features in the WFS layer. */