Select to view content in your preferred language

Disable selection on featurelayer

131
2
Jump to solution
05-16-2024 05:14 AM
Vakhtang_Zubiashvili
Occasional Contributor III

Hi all,

 

I want to disable selection on click for some Featurelayer on my map. I have two Featurelayer overlapping and when i click on map i want to get popup only for one Featurelayer.

 

Thanks

0 Kudos
1 Solution

Accepted Solutions
JeffreyThompson2
MVP Regular Contributor

https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupEna...

The featureLayer has a property called popupEnabled with a default value of true. featureLayer.popupEnabled = false will disable popups for that layer.

GIS Developer
City of Arlington, Texas

View solution in original post

2 Replies
JeffreyThompson2
MVP Regular Contributor

https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupEna...

The featureLayer has a property called popupEnabled with a default value of true. featureLayer.popupEnabled = false will disable popups for that layer.

GIS Developer
City of Arlington, Texas
Vakhtang_Zubiashvili
Occasional Contributor III

Hi, 

thank so much, that's correct ❤️

0 Kudos