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/#ext...