Select to view content in your preferred language

Print without Map

236
1
03-17-2026 02:50 PM
vijaybadugu
Frequent Contributor

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

0 Kudos
1 Reply
Noah-Sager
Esri Regular Contributor

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...

 

0 Kudos