4.x - Feature Layer - Default generalizing of geometries

11-22-2017 10:25 PM
New Contributor III

Hi, when using a Feature layer (FeatureLayer | API Reference | ArcGIS API for JavaScript 4.5 ), then the maxAllowableOffset = 1 value is used when the layer is switch on.

(It use the Query task automatically to display the layer i.e. Query | API Reference | ArcGIS API for JavaScript 4.0  )

How do control the amount of generalization that can happen, ideally automatically affected by scale, when I only construct a Feature Layer and adding to the map?

In the API v3.x, the maxAllowableOffset was set on the layer itself.

Any advice would be much appreciated.

0 Kudos
1 Reply
New Contributor III

OK, I did found something:

I was using 4.4, i.e.:

<script src="https://js.arcgis.com/4.4/"></script>

Whereas  4.5 now started to add none "1" values to for maxAllowableOffset. In my case 0.25, so my response size is even bigger ... eish

This value have no effect if I zoom in or out, because the Feature Layer is only loaded once.

I played with my initial extent before activating the layer for the first time, but it makes no difference - always 0.25

Any comments?

0 Kudos