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
-
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
![Screenshot from 2024-05-24 17-47-52](https://private-user-images.githubusercontent.com/3873524/333669857-ee2d2af4-6a19-4240-bf9d-1b70c219f58b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3NTE0NjYsIm5iZiI6MTcyMTc1MTE2NiwicGF0aCI6Ii8zODczNTI0LzMzMzY2OTg1Ny1lZTJkMmFmNC02YTE5LTQyNDAtYmY5ZC0xYjcwYzIxOWY1OGIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjNUMTYxMjQ2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDEwODcyMWMwOGMzZmE4ZjQ3MmQ0OTYwZjVlYmI4NTQ5YjQyZmQyMGUzYTBlYjE5OGNmMzJlM2I4ZTMwNmFkYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ADymDnMNkxh-N1Nz8TnfXcuOnnk2-w-w0lXnyaC-0Pc)
npm run dev
, I have the expected controls:If I then run
![Screenshot from 2024-05-24 17-47-20](https://private-user-images.githubusercontent.com/3873524/333669858-455e2a6c-de9d-424c-9401-28d7c8a8164a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3NTE0NjYsIm5iZiI6MTcyMTc1MTE2NiwicGF0aCI6Ii8zODczNTI0LzMzMzY2OTg1OC00NTVlMmE2Yy1kZTlkLTQyNGMtOTQwMS0yOGQ3YzhhODE2NGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjNUMTYxMjQ2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWI4Y2U5NDBhZWNhMWFkNTYwODdiYWY5NTkwNTkwNWZkNjJjOTgwOTNlMGMzOWM1NzMyZjZkMDExNTgyMTk5ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.SNiWPSwl6BOTQ3uT_jzadbRh3VYMFn13rpmpR8BIyoA)
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