首页 / 浏览问题 / WebGIS / 问题详情
超图FAQ:L.supermap.TiledMapLayer单独做click或者hover事件该怎么实现?给map绑定事件然后在回调里找图层效率有点低,想直接绑TiledMapLayer上,该怎么做?
64,468EXP 2025年06月09日
L.supermap.TiledMapLayer单独做click或者hover事件该怎么实现?给map绑定事件然后在回调里找图层效率有点低,想直接绑TiledMapLayer上,该怎么做?

1个回答

【问题原因】L.supermap.TiledMapLayer不支持绑定click、hover事件 【解决办法】需求是对行政区划做单值专题图点击展示内部信息,如果只是高亮可以参考客户端专题图:https://iclient.supermap.io/examples/leaflet/editor.html#uniqueThemeLayer,如果要实现点击要素高亮,并展示属性信息可以参考:https://blog.csdn.net/supermapsupport/article/details/127066407
64,468EXP 2025年06月09日
热门文章
关注我们
...