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
{{ message }}
Repository navigation
[map] Add convenience APIs for manipulating the viewport #2682
The map's viewport is defined with an instance of the View class, and in order to change the viewport developers have to first get this instance in order to make changes. For example setting the zoom level requires you to do: map.getView().setZoom(4).
Describe the solution you'd like
The map component could provide shortcut methods to change the viewport, such as map.setZoom(4). These methods would just delegate to the internal view object. We probably don't need to cover all properties of the view, but likely candidates would be: center, zoom, rotation.
Activity