We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is possible to set an initial extent on RMap via the extent attribute, but this attribute is not dynamically modifiable.
RMap
extent
In OpenLayers, we can replace the View object of the map (Map.setView), which may contain an extent property, updating the extent of the existing map.
View
Map.setView
The RMap.view attribute of type RView does not contain an extent property, unlike the analogous ol/View .
RMap.view
RView
ol/View
Am I missing something? Is there any way to update the extent of the map's view in rlayers?
The text was updated successfully, but these errors were encountered:
Not at the moment
Sorry, something went wrong.
You can work around by setting key={i} property - increment the counter each time you change the extent - this way React will recreate the map.
key={i}
Thanks, the workaround works.
No branches or pull requests
It is possible to set an initial extent on
RMap
via theextent
attribute, but this attribute is not dynamically modifiable.In OpenLayers, we can replace the
View
object of the map (Map.setView
), which may contain anextent
property, updating the extent of the existing map.The
RMap.view
attribute of typeRView
does not contain an extent property, unlike the analogousol/View
.Am I missing something? Is there any way to update the extent of the map's view in rlayers?
The text was updated successfully, but these errors were encountered: