I have to add buffer to large data service. but its not working it only take 2000 data when I fire query on service. Write own recursive logic to load array and then add to graphic layer but it not load when data is more.
work for small data. Please Help me!
Can you give some more details about the problem?
Technically this should work out of the box. Example with "USA Zip Codes": https://zurich.maps.arcgis.com/home/item.html?id=dc123f738bf846779c49db6472f82a4b
You can open them in SceneView and MapView and the points show with 41k features (https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_ZIP_Code_Points_analysis/Featu...)
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<title>Intro to FeatureLayer | Sample | ArcGIS API for JavaScript 4.20</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.20/esri/themes/light/main.css" />
<script src="https://js.arcgis.com/4.20/"></script>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
require(["esri/Map", "esri/views/MapView", "esri/layers/FeatureLayer"], (Map, MapView, FeatureLayer) => {
const map = new Map({
basemap: "hybrid"
});
const view = new MapView({
container: "viewDiv",
map: map,
});
const featureLayer = new FeatureLayer({
url: "https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_ZIP_Code_Points_analysis/FeatureServer/"
});
map.add(featureLayer);
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
Thanks for quick response.
My requirement is add buffer to all point data in service. its work for only few data.
i am using
const queryTask = new esri.tasks.QueryTask(`${serviceURL}`);
queryTask.execute(query, (result) => {
Hello @SS12 ,
This just looks like a simple service max request configuration on your server endpoint. By default 2000 is the limit of max features you can return on a query to a service published to ArcGIS Online. The following is a knowledge article on how you can update this to a larger number:
https://support.esri.com/en/technical-article/000012383
If you have an ArcGIS Enterprise setup the workflow would be to go to Server Manager and update the properties on the service.
Thanks,
Jose