Comments (2)
Currently, an RLayerVector
does not support being detached and reattached to another RMap
- this is the missing feature
from rlayers.
I think you need useRef for each RLayerVector in parent component, i'm working on that also, but the problem is when using RControl.Rlayer and you put RLayerVector inside or outside there with custom event handler yourself it's not work, I have code like this.
on parent component
const vector1 = useRef()
<RMap>
<RLayerVector vector1Ref={vector1}/>
</RMap>
and then on your child component define ref on RLayerVector, and also mostly you can see that ref console.log(props.vector1Ref)
from rlayers.
Related Issues (20)
- Gesture overlay and handling HOT 3
- Performance issues with RDraw HOT 4
- Support for tailwindcss? HOT 3
- Uncaught DOMException when removing an `ROverlay` HOT 1
- Change RCircle radius when zoom changes HOT 1
- How to add KML as layer vector HOT 1
- Remove last point event RDraw
- Typescript error cannot use Component as a JSX Component HOT 4
- persist map context HOT 1
- Snaping in interaction HOT 1
- How do I configure tileSize? HOT 1
- format problem in WMS WMTS HOT 4
- npm ERR! Could not resolve dependency: ol@"^8.0.0" and [email protected] HOT 1
- rlayers not supported for OpenLayers 8.0.0 HOT 4
- Is it possible to dinamically add/remove layer from RMAP? HOT 7
- Question on how to manage events on layers components HOT 2
- Adding a print control
- is it possible to do layer pixel manipulation? HOT 1
- Using non-default projection with OSM and Next.js HOT 3
- RLayerWMTS fetches the wmts file twice HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rlayers.