AnsweredAssumed Answered

Extent.contains returns false for a polyline in the extent

Question asked by kenbuja Champion on Dec 17, 2013
Latest reply on Dec 17, 2013 by kenbuja
I am using Extent.contains in a function to see if a graphic is inside the current map extents before I do some effects with it. The effect crashes if the graphic is not within the map's extent. This function receives points and lines, both of which are in the same dynamic map service with the same spatial reference (10200).

I've set up an example in JSBin to show this. It queries the line layer, checks whether it's within the map extent, and adds the graphic to the map. It does the same to the point layer. The console reports the map extent and the feature extent. Evaluating the point returns true, but the line returns false. Why isn't the line feature seen as being inside the map extent?