Solved! Go to Solution.
Is a polygon tiled layer used as a basemap considered a graphic? Or only the dynamic feature layer?
I'll also want to hide the infoWindow if scale changes beyond the visible scale range for the layer
Try moving that listener immediately underneath the map declaration
hard-code something in your code, then check the current scale range on each zoom change, and post what I do. I'll probably choose to store variables rather than send a query every onZoomChange.