As far as I know, the only way is to increase the limit using ArcGIS Server Manager.
Query for ObjectIds. There is no limit on the number of ObjectIds that are returned from the server.
maxRecordCount is a read-only property which is carried over from the map service. The only way you can increase the limit is to change maxRecordCount of a map service using ArcGIS Server Manager or ArcCatalog.
There is no direct solution. Other option can be....Use querytask to get the objectIds of the features of layer within the geometry.And then set the layerDefinitionExpression for the the layer by passing the returned ObjectIds. Like OBJECTID IN (1,2,3.......)But there might be the limitations of number of objectid's to be passed to the layerdefinition expression. If records returned are more...
Do you mean selection by location? You can define a QueryTask and in your Query definition you can set your query geometry and type of relationship, and display only the features you want in a graphic layer.Hope this will help.
The layerDefinitions property can be used to filter the features of the individual layers in a map service. Take a look at the code snippet.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.