Skip to content

Latest commit

 

History

History

widgets

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Query Statistics with SQL Expression Widget

This widget queries summary statistics for features within the current map view. This code was mostly adapted from ArcGIS Javascript API 3.17 sample code Query Statistics with SQL Expression.

Statistics Widget Screenshot

Widget Configuration

Add the following code to the viewer.js file

queryStatistics: {
    include: true,
    id: 'querystat',
    type: 'titlePane',
    path: 'widgets/QueryStatistics',
    title: 'Summary Statistics',
    open: true,
    position: 0,
    options: 'config/statisticsConfig'
},

To Dos and Goals for this widget:

  • Adapt code from API sample
  • Change the query geometry from point buffer to current map extent
  • Add function to allow user to select layer for statistics
  • Allow user to have a choice between point buffer and current map extent?