Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RText properties are not always updated #85

Closed
mmomtchev opened this issue Sep 29, 2022 · 2 comments
Closed

RText properties are not always updated #85

mmomtchev opened this issue Sep 29, 2022 · 2 comments

Comments

@mmomtchev
Copy link
Owner

Some dynamic properties of RText are not updated

@TrySpace
Copy link

TrySpace commented Oct 28, 2022

I've noticed many other properties are not updating dynamically like on the RMap component: noDefaultControls, noDefaultInteractions, maxZoom.

The docs only state a few specific props that don't update, but the above examples don't...

I see this is because the RMap constructor creates a new Map, and never reinitializes it after props change:

this.ol = new Map({

@mmomtchev
Copy link
Owner Author

Fixed by #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants