Replies: 3 comments
-
Someone else mentioned this before too, but I’m not sure how to reproduce it. Happy to take a look in a day or two if you can point me to a repository that has the problem. |
Beta Was this translation helpful? Give feedback.
-
I too have this problem. I have added these in package.json:
This is the full code of the svelte page/component:
When running with npm run dev it works fine but when compiled with npm run build and then executed on node.js it looks like the broken picture in post above. |
Beta Was this translation helpful? Give feedback.
-
I noticed I could workaround the problem by adding bundling the maplibre-gl.css file in the static folder of my web and then loading it in app.html. Not a beautiful solution but it works:
Still looking for a more modular/encapsulated solution that doesn't pollute the global css scope. |
Beta Was this translation helpful? Give feedback.
-
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 on npm run preview
<Control position="top-right"> <FilterButton/> </Control>
Have you seen this behaviour before?
Beta Was this translation helpful? Give feedback.
All reactions