// 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(); } });
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.