简体   繁体   中英

Using OpenLayers 3 as react component

I wonder whats best practice to manage OpenLayer3 map and layers as react components. Since only the map ultimately needs a target to be rendered in, the layers could be composed as react components, as well as the layers sources. Are Features react children to the component or should we just use componentDidMount and componentWillUpdate to update features?

一年后,我创建了这个最小的包装反应开放层

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM