How can I write the code to turn off the base map, and another code to turn on later?
var bm = map.getLayer("layer0"); bm.setVisibility(false); //to switch off bm.setVisibility(true); //to switch on
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.