Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example code under "explicit import" shows map with height 0px #419

Open
marko-knoebl opened this issue Mar 20, 2025 · 0 comments
Open

Example code under "explicit import" shows map with height 0px #419

marko-knoebl opened this issue Mar 20, 2025 · 0 comments

Comments

@marko-knoebl
Copy link

I just tried the example here:

https://vue3openlayers.netlify.app/get-started.html#usage-explicit-import

For me, the result was a div that represents the "ol-map" with a height of 0, so the map was invisible (tested in Chrome and Firefox)

Changing the example code from 'min-height: 400px' to 'height: 400px' solved the problem for me.

I can also reproduce this behavior in the Stackblitz Playground - if I change from "height" to "min-height" there the map also disappears.

So I think all examples should use "height" instead of "min-height".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant