// hide other layers dojo.forEach(map.layerIds, function(id) { map.getLayer(id).hide(); });
// hide all feature layers dojo.forEach(map.graphicsLayerIds, function(id) { var layer = map.getLayer(id); if (layer.declaredClass === "esri.layers.FeatureLayer") { layer.hide(); } });
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.