Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
在监听图层之前,需要对图层开启点击事件,使用开始单选图层,传入的参数是要点击的图层的类型,然后使用监听图层点击就可以,详情可以参考https://www.tuguan.net/doc/tg-api/?manual.manual.layerControl.select#3%E5%BC%80%E5%A7%8B%E5%8D%95%E9%80%89%E5%9B%BE%E5%B1%82