Webmap Printout Legend only show classes in map extent in JavaScript 3.x

247
0
08-16-2022 11:47 AM
Status: Open
RobertKirkwood
Occasional Contributor III

I am using the JavaScript 3.x  API to create a PDF print out from a print service. I would like tp only show the feature that are shown in the map extent. 

For example, I use the BLM Surface owner layer. There are about 20 different symbol classes in the symbology. Most of the time the user is zoomed in and there are two to three different symbols. When the map is exported all the symbols show up.