Select to view content in your preferred language

Web AppBuilder DE - Query a Zipped Shapefile

440
1
Jump to solution
05-10-2022 12:49 PM
XuanKuai
Occasional Contributor

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
Occasional Contributor

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
Occasional Contributor

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