Appended data in hosted Feature Layer doesn't follow visible range settings

165
1
03-27-2023 11:14 AM
NicholasRolstad2
New Contributor II

I have a polygon feature layer that I occasionally append data to through the ArcGIS JS API.  The new data that I append though only shows up on maps (map viewer, JS app, etc.) when extremely zoomed in though and doesn't follow the visible range set on either a map or in the JS SDK code. Any ideas?

You can see in the image below, data in MN/IL shows up but the data recently added to VA is only visible when I zoom in. If I zoom out any further the data will disappear. No matter what map I add the data too, or if I add it to a webmap through the JS API. What am I missing here?

NicholasRolstad2_0-1679940684888.png

NicholasRolstad2_1-1679940754605.png

 

 

0 Kudos
1 Reply
Omar_A
by Esri Contributor
Esri Contributor

Hi,

You can adjust the visibility range of the layer in the ArcGIS Online map viewer or in the JavaScript API using the setMinScale() and setMaxScale() methods. 

Regarding property setMinScale(scale) and setMaxScale(scale) in ArcGIS API for JavaScript? - Geograp...

Additionally, you could try publishing the data as a new feature layer and see if that resolves the issue.

 

0 Kudos