Select to view content in your preferred language

JavaScript API: Support Z values in 2D MapView queries

755
1
05-15-2020 04:58 PM
RyanSutcliffe
Occasional Contributor II

This isn't an exciting new feature. Its a fix to a problem with the API. 

If you look at the ESRI ArcGIS JavaScript API documentation you'll see:

FeatureLayerView.queryFeatures() and GeoJSONLayerView.queryFeatures() results do not include the z-values when called in 2D MapView even if returnZ is set to true.

What is up with that? There's lots of instances where I would like to be able to have access to my data's z-values even if I'm querying it clientside via a 2D Map. I can see why this capability might be disabled by default but not why its not possible at all.

 

I would like to know if this is under consideration for future versions and if not, why not? What's the obstacle?

PS> Also, why isn't there an arcgis javascript api category?

1 Comment
BjornSvensson
Status changed to: Under Consideration