function removeMe() { map.removeLayer(referenceLayer); map.removeLayer(basemap); }
function removeMe() { map.removeAllLayers(); }
function removeMe() { var count = map.layerIds.length; var array = []; for(var i=0;i<count;i++) { array = map.layerIds; } for(var j=0; j<count; j++){ var layer = map.getLayer(array); map.removeLayer(layer); } }
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.