Hello,
How do I set the feature layer to disappear when zoomed into an Area of Interest? Any help is appreciated, references,or documents. Thanks!
var featureLayerParks = new FeatureLayer("http://services.arcgis.com/HYLRafMc4Ux6DA8c/arcgis/rest/services/Parks_Search/FeatureServer/1", { mode: FeatureLayer.MODE_ONDEMAND, visible: FeatureLayer.isVisibleAtMapScale=true
James,
When you say area of interest you mean a certain extent right? If this is the case then you need to attach an event to the maps extent-change event and determine if your AOI extent intersects the maps extent (or contains).
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.