AnsweredAssumed Answered

Doesn't Work: featureLayer.selectFeatures(query,FeatureLayer.SELECTION_NEW);

Question asked by bokeefe on Apr 8, 2014
Latest reply on Apr 9, 2014 by jeff.pace
I have a map. It works so far. I am learning as I create this map, so it's not a production map... strictly testing.

I've got basic Geocoding dropping an InfoWindow for now... a blank one... but I'm trying to populate it with FeatureLayers underneath the center point of the extent from the GeoCoder.

Here's my problem (as of now).

My map works...
Then in my mainScript.js file if I add the following...
"esri/tasks/Query" and Query to the Require it dies... stops working...

I've tried adding in the two entries at the top of the list, middle, end... doesn't matter... as soon as I change the variables/arguments on the 'require' to include 'Query' it dies. I don't even get a chance to write actual code.

Here is my script that kills the map...

require (  [   "esri/map",   "esri/dijit/Popup",   "esri/tasks/Query",   "esri/layers/FeatureLayer",   "dojo/dom-class",   "dojo/dom-construct",   "dojo/on",   "dojox/charting/Chart",   "dojox/charting/themes/Dollar",   "esri/dijit/Geocoder",   "esri/geometry/Extent",   "esri/SpatialReference",   "dojo/domReady!"  ],  function( Map, Popup, Query, FeatureLayer, domClass, domConstruct, on, Chart, theme, Geocoder, Extent, SpatialReference )  {


If I remove the Query entries, it suddenly starts working... So confused...

Outcomes