JS API 4.x Feature Popups for Cached Tile Layer

219
0
08-24-2020 06:17 PM
BenRomlein
Occasional Contributor

Is there a good way to get feature popups when using tile layers?


Right now I'm adding a feature layer to the map on top of each tile layer and setting the popupTemplate on that. This is a performance hit for feature-rich layers. Is there a way to add the feature data to the map without drawing all of the features?

I've tried setting opacity to 0 and visible to false; the former doesn't seem to help performance (and I don't get a highlight on selected features) and the latter eliminates the popups.

Using JS API 4.16.

0 Kudos
0 Replies