mcoop05

visibleArea.envelope returns extent with no spatial reference

Discussion created by mcoop05 on Dec 18, 2012
Latest reply on Jan 5, 2013 by mcoop05
Hello,

I'm attempting to pass an extent to a spatial query for a feature layer and running into an issue.  If I try and grab the current map extent like this:
self.mapView.visibleArea.envelope


The extent returned has no spatial reference.  The mapView spatial reference is set and returns 102100.  Any ideas why visibleArea.envelope wouldn't pick up the map spatial reference?

If I just pull an extent from:
featureLayer.fullEnvelope  

The query will then be successful and obviously returns all the features. 

Any suggestions?  Thanks!
Matt

Outcomes