Single layer visible in LayerList widget (ArcGIS JavaScript)
问题 Is it possible to have a single layer visible on the map in this ESRI tutorial LayerList widget ? Each time you click on a layer, the previous one should deactivate. So you always have only one layer on the map. Michelle 回答1: I managed to write a code for you . Check it and let me know : <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Layer List Dijit<