You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm learning to use open layers with rlayers and wanted to know the right way to use the "once" and "on" events.
For example I could easily use "onPostRender" on a "RLayerVectorImage" component but there is no props for "oncePostRender" where with the basic open layers api I could have done something like this: "layer.once('postrender', () => {})".
I've also noticed that some events aren't referenced in the props for certain components, for example "onPostRender" doesn't exist for the "ROSM" component, is this normal? I wondered if it was relevant to my case to extend rlayers for this kind of thing.
At the moment I'm using the rlayers components with events if they're available at the props level and if not I'm making a nested component to use the open layers api with "useOL", which results in a bit of a weird mix.
I haven't gone through the docs and the rlayers api very much yet, so if you have any suggestions on how to go about it, I'd love to hear from you!
The text was updated successfully, but these errors were encountered:
Hello!
I'm learning to use open layers with rlayers and wanted to know the right way to use the "once" and "on" events.
For example I could easily use "onPostRender" on a "RLayerVectorImage" component but there is no props for "oncePostRender" where with the basic open layers api I could have done something like this: "layer.once('postrender', () => {})".
I've also noticed that some events aren't referenced in the props for certain components, for example "onPostRender" doesn't exist for the "ROSM" component, is this normal? I wondered if it was relevant to my case to extend rlayers for this kind of thing.
At the moment I'm using the rlayers components with events if they're available at the props level and if not I'm making a nested component to use the open layers api with "useOL", which results in a bit of a weird mix.
I haven't gone through the docs and the rlayers api very much yet, so if you have any suggestions on how to go about it, I'd love to hear from you!
The text was updated successfully, but these errors were encountered: