I see that in ArcGIS Pro 3.5 we can now set a spatial definition query on a layer. In the Pro SDK, I am aware that I can do featureLayer.setDefinitionQuery() to set a definition query on the layer. But is there a way to set a spatial definition query on the feature layer from the sdk? I am unable to find such a method in the API reference docs.
@SelimDissem @UmaHarano @Wolf @CharlesMacleod
Hi @MK13
Check out this snippet: Querying a feature layer with a spatial filter Please let me know if you have any questions about this -
Uma
Uma, that works perfectly. Thank you.
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.