Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有机会在某些 ol4 组件上禁用某些默认事件侦听器或停止触发某些基本事件?例如,我想在不触发“添加”事件的情况下推送 ol.Collection 中的元素,或者在不触发“更改”事件的情况下更改 ol.Feature 的几何形状。
ol.source.Vector.addFeatures() 将添加传递的功能,然后触发单个 CHANGE 事件 - 请注意,它确实会为每个功能触发一个 ADDFEATURE 事件。