Replies: 1 comment
-
The code described here is not part of maplibre-gl-js. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! I when I add buttons on the map and run
npm run preview
they are all changing size or position.If add the StandardControl to my map, and run

npm run dev
, I have the expected controls:If I then run

npm run build
,npm run preview
(and when I deploy on firebase), the preview has the buttons the width of the map:I have also tried to create my own button, which appears in the top-right of the screen. Again it looks correct when running
npm run dev
, but moves to the left onnpm run preview
<Control position="top-right"> <FilterButton/> </Control>
Have you seen this behaviour before?
Beta Was this translation helpful? Give feedback.
All reactions