-
Notifications
You must be signed in to change notification settings - Fork 637
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
CSS Flexbox With Leaflet Map #950
Comments
This isn't an angular-leaflet-directive issue. I have the same problem. I've gotten around this by adding:
in a $timeout (where the invalidateSize() call happens after your map has initially flexed to size) |
@cgat thanks that works! |
I have the same problem as well. I run the $timeout from myApp.run(function($timeout, leafletData) {
$timeout(function() {
leafletData.getMap().then(function (map) { map.invalidateSize(); });
}); Has this issue been reported to leaflet ? Shall we reopen Leaflet/Leaflet#3072 ? |
@sdebionne good point I would report it/reopen. |
But a valid MCVE against raw leaflet is what they will want. |
@sdebionne The $timeout for the function call to
|
This isn't working for me. It seems that the timeout is occurring before the flex layout finishes. I can get it to work by increasing the timeout duration but obviously this isn't ideal because the layout duration is device dependent. |
When using
display: flex
in conjunction with angular-leaflet-map I get issues with the tiles not loading. Even when scrolling around the map it seems like the plugin believes that the viewport is a different size.Has anyone encountered this before?
The text was updated successfully, but these errors were encountered: