Print Widget support for highlighting features

226
2
11-18-2019 11:54 PM
MarkusÅfelt
New Contributor III

Hi,

Currently Print Widget (ArcGIS JS 4.13) does not support highlighting features? 

Arcgis Server supports it (selectionObjectIds), ExportWebMap specification—Documentation (10.7) | ArcGIS Enterprise 

So would it be possible get support for highlighting the features? or is there workaround getting it working?

Br,

Markus

0 Kudos
2 Replies
Noah-Sager
Esri Regular Contributor

Hi Markus.

You are correct, the print widget does not support printing highlighted features. One possible workaround would be to use the MapView.takeScreenshot() method instead of printing.

MapView | takeScreenshot() 

Another possible workaround would be to add a copy of the feature as a Graphic before printing.

Hope this helps.

0 Kudos
MarkusÅfelt
New Contributor III

Hi,

I went solution of copying the objectIds of highlighted features in the client side and sending those to backend.

In the backend, I modified the query for ExportWebMap by populating selectionObjectIds array from the values which I got from client side.

Now highlighting features is working fine on the print.