怎么获取图层列表中的某个图层的对象?

创建了一个图层列表,里面包含几个图层,我想获取图层列表中的某个图层对象,怎么获取?
捕获.PNG

就是通过点击的某个列表中图层文档窗口中完成激活该图层,通过什么方法来完成?
已邀请:

goldenlimit - Major in MIS and minor in GIS, graduated from University of Alabama. GIS is not a simply tool but a way of exploring the unknow

赞同来自:

你可以参考下我这个小sample:
http://jsbin.com/xasitoweja/edit?html,output
 
当你创建一个layer object的时候,你可以通过layer.layerInfo来获得
然后结合div id
抓取获得layer.layerInfo
 
Hope this can help you.

要回复问题请先登录注册