你好,二维的线图层的渲染您可以通过官网的开发指南和范例进行学习,可以参考leaflet 开发指南 https://iclient.supermap.io/web/introduction/leafletDevelop.html
图层显隐控制,请参考https://blog.csdn.net/supermapsupport/article/details/50728060?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522160265556419725271719282%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=160265556419725271719282&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_v1~rank_blog_v1-1-50728060.pc_v1_rank_blog_v1&utm_term=%E5%AD%90%E5%9B%BE%E5%B1%82%E6%98%BE%E9%9A%90&spm=1018.2118.3001.4187