There is a strange behaviour when querying a FeatureService. I have a Point FeatureLayer that is hosted on ArcGIS Portal in a MapView. When the zoom level in the MapView is initially set to a high number (e. g.10), then the points from the FeatureLayer are queried by the extent of the MapView, which is what I expect. However, when the initial zoom level of the map is at around 3 or lower or unset, then all points are loaded at once using queries with the parameters resultOffset and resultRecordCount. This happens regardless of the current zoom level of the MapView .The layer has a scel-dependent visibility and is only visible when zooming in. The layer has 100'000s of points, i don't ever want to load all the points.
Here an example of the behaviour: CodePen
Is there a way to cinfuger the loading behaviour? I couldn't find any doumentation on this behaviour, this would be very helpful.