I would like to export the extent to PDF document from webmap without using any User interface. I believe it is possible using REST Services. How to get extent of it in order to pass them to Rest service
Hi @vijaybadugu, thanks for posting your question here. Depending on the extent you want, you should have several options. Here are some ideas:
You could query the extent of a layer: https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#queryExtent
or get the visible extent of the map component: https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#extent
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.