Select to view content in your preferred language

Tile feature requests for points vs lines

469
1
Jump to solution
08-22-2023 12:42 PM
ChristopherFrickeASL
New Contributor

When I load a point layer arcgis server into a feature layer in arcgis js sdk, it does the following request sequence:

  1. .../query?f=json
  2. .../query?resultRecordCount=true
  3. .../query?limit=2000&offset=0
    {pages through till count from step two is hit}

When I load a polyline layer from arcgis server into a feature layer in arcgis js sdk, it does the following request sequence:

  1. .../query?f=json
  2. .../query?f=geometry={'xmin': xxx, 'ymin': xxx etc}
    {pages through each tile in the map view and updates as panning around}

I am trying to figure out why points feature services do a big count and then paginate with limit/offset and polylines paginate by tile? Can I force the JS sdk to use one or the other?

0 Kudos
1 Solution

Accepted Solutions
UndralBatsukh
Esri Regular Contributor

Hi there, 

That is because the API fetches all of point features at once from the server. Once loaded, the features won't need to be re-requested from the server, which will make future redraws after panning and zooming much faster.

This is the release note: https://developers.arcgis.com/javascript/latest/4.19/#performance-improvements

If you need to disable this behavior for some reason then you can read how from this post: https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fe...

 

View solution in original post

1 Reply
UndralBatsukh
Esri Regular Contributor

Hi there, 

That is because the API fetches all of point features at once from the server. Once loaded, the features won't need to be re-requested from the server, which will make future redraws after panning and zooming much faster.

This is the release note: https://developers.arcgis.com/javascript/latest/4.19/#performance-improvements

If you need to disable this behavior for some reason then you can read how from this post: https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fe...