Web AppBuilder DE - Query a Zipped Shapefile

345
1
Jump to solution
05-10-2022 12:49 PM
XuanKuai
New Contributor III

In Web AppBuilder Developer Edition, is there any way to query a zipped shapefile uploaded by the Add Data widget?

0 Kudos
1 Solution

Accepted Solutions
XuanKuai
New Contributor III

Figured it out myself. Turns out to be simple. Although the feature layer from upload is based on feature collection, hence not possible for server-side query, each feature can still be extracted by the following:

var graphic = this.map.getLayer(layerId).graphics[i];

 This contains all the attributes to do a client-side "query".

View solution in original post

0 Kudos
1 Reply
XuanKuai
New Contributor III

Figured it out myself. Turns out to be simple. Although the feature layer from upload is based on feature collection, hence not possible for server-side query, each feature can still be extracted by the following:

var graphic = this.map.getLayer(layerId).graphics[i];

 This contains all the attributes to do a client-side "query".

0 Kudos