Openlayers ol-ext 选择多个特征进行转换



我正在使用Openlayers的ol-ext扩展,这太棒了。

我感兴趣的部分是 Transform 交互,我在这里有一个基本的 React 示例中使用它:https://jsfiddle.net/mcneela86/umrz7dd1/

这是到目前为止组件的范围:

class Select extends React.Component {
static contextTypes = {map: PropTypes.object}
componentDidMount() {
this.select = new ol.interaction.Transform();
this.context.map.addInteraction(this.select);
console.log(this.select);
}
componentWillUnmount () {
this.context.map.removeInteraction(this.select);
}
render() { return null; }
}

我的问题是,有没有办法一次选择多个功能?

假定变换交互仅处理一个功能。 可以使用多个,但我需要用例来查看发生了什么(每个功能是否应该单独旋转?围绕哪个中心?等等(。

您可以在 github 页面上要求增强功能。

最新更新