Select to view content in your preferred language

select by location

6683
7
04-28-2016 12:52 PM
AprilChipman
Frequent Contributor

Is it possible to select by location in Operations Dashboard? Or, can a widget be setup to display the results of such?

For example, I want to know how many damaged electric poles I have in each county.

0 Kudos
7 Replies
AdrianWelsh
MVP Honored Contributor

April, I am not familiar with Operations Dashboard but if it behaves like AGOL then you could likely put in a filter for the poles, if they have an attribute of that county name.

This link may help:

http://doc.arcgis.com/en/operations-dashboard/windows-desktop/author/map-widget.htm#ESRI_SECTION1_54...

TifPun
by
Frequent Contributor

Hi April,

Andrian made a good point that if your Poles layer has a County attribute, you can create a filter data source using this County attribute.  And depending on what context you're trying to do the filtering and/or selection, you can use the Layer Filters map tool or the Query widget as well.

If you want to do spatial selection with the out-of-the-box tools, at this point you can only use the map's current extent and not features from a data source (please see to this documentation for details). However, you can easily write an extension to do more complicated spatial operation like the one you're trying to do. I have a small sample extension that I can share with you if you're interested

Cheers,

Tif

0 Kudos
AprilChipman
Frequent Contributor

The poles layer I am using for this query does not have a county attribute, so the filter option doesn't work.

Yes, please do send me the sample extension. Writing extensions and widgets still intimidates me, but maybe having one to start from will help ease my anxiety! 

Thanks,

April

0 Kudos
TifPun
by
Frequent Contributor

Hi April,

I have uploaded the sample to this location with steps about how to use it with your operation view. Please note that there's a bug in the 3.16 JSAPI that causes selection not to work properly (all features will be selected). We have a fix for the issue already and it will be rolled out with the 3.17 JSAPI when it is released.

Feel free to leave us a comment here or post your question in the forum if you run into problem writing extensions or using the app, or if you have suggestions on what features you want to have in the future.

Cheers!

Tif

AdrianWelsh
MVP Honored Contributor

Tif,

This may be a silly question, but why is it that the JavaScript will update from 3.16 to 3.17 when 4.0 is already out?

0 Kudos
ChristopherOlsen
Frequent Contributor

Hi Adrian,

The JavaScript 3.16/17 libraries are different than the 4.0 ones.  The 4.0 has support for 3D and webscenes right now but not OGC, editing, etc.  There's a comparison chart here for examples: Choose between version 3.16 and 4.0 | ArcGIS API for JavaScript 4.0

TifPun
by
Frequent Contributor

Hi Adrian,

To add to Chris's point, our extensibility framework is currently only available in the 3.x codebase and we're working on the 4.x version, so for now if we develop a Dashboard extension, we'll have to use the 3.x API.

Thanks for the great question!

Tif

0 Kudos