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
The FullscreenControl does not restore the original viewport w/h on return (as I would expect by default), and has no documented onViewportChange property or other way to detect fullscreen state. The one example that features it (markers & popups) has w/h hardcoded to 100% and therefore ignores the faulty viewport size. You should be able to reproduce it by removing that hardcoding. Wrapping a div also does not force its child to shrink down, at least not without guru level css.
Another issue is that capturePointerMove={true} does not prevent panning the map while holding down the FullscreenControl. For NavigationControl and GeolocateControl this does work.
Also, in NavigationControl, the compass icon is not visible and I'm not able to drag the button to change orientation/pitch as I would expect (with capturePointerMove={true} or false).
Repro Steps
Environment (please complete the following information):
The map component is stateless. width and height numbers from the onViewportChange callback are the result of the width and height props that you provide (what you referred to as "hard coded"). If you just blindly feed them back to the component then yes, you will be stuck in the situation where you cannot "go back" to where you were.
capturePointerMove={true} does not prevent panning the map while holding down the FullscreenControl.
The purpose of capturePointerMove is to block onPointerMove event. Use captureDrag to block panning. This is explained in the documentation:
Description
The FullscreenControl does not restore the original viewport w/h on return (as I would expect by default), and has no documented onViewportChange property or other way to detect fullscreen state. The one example that features it (markers & popups) has w/h hardcoded to 100% and therefore ignores the faulty viewport size. You should be able to reproduce it by removing that hardcoding. Wrapping a div also does not force its child to shrink down, at least not without guru level css.
Another issue is that capturePointerMove={true} does not prevent panning the map while holding down the FullscreenControl. For NavigationControl and GeolocateControl this does work.
Also, in NavigationControl, the compass icon is not visible and I'm not able to drag the button to change orientation/pitch as I would expect (with capturePointerMove={true} or false).
Repro Steps
Environment (please complete the following information):
6.1.17
maplibre-gl 2.0.0-pre.5
17.0.2
Chrome 95
Ubuntu 20.04.3 LTS
Logs
No relevant logs, except that the viewport remains set to the screen resolution
The text was updated successfully, but these errors were encountered: