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

Canvas setting to "display:none" on resize of the Collapsed Tab #4601

Closed
khavrenko opened this issue Dec 29, 2015 · 2 comments
Closed

Canvas setting to "display:none" on resize of the Collapsed Tab #4601

khavrenko opened this issue Dec 29, 2015 · 2 comments

Comments

@khavrenko
Copy link

Env: version 3.12.1, browser Chrome 47.0.2526.106 m (64-bit), OS Windows 7 x64

  1. Collapse the Map Section
  2. Resize the Browser Screen
  3. Expand the Map Section( Now the Map was not rendering (it is blank), instead display:none was attached to the Canvas Element)

Note: when i manually invoke $mapContainer.find('.ol-viewport canvas').show(), map was displayed, but default controls are not working)

P.S. it is the same behavior as tombatossals/angular-openlayers-directive#199

@ahocevar
Copy link
Member

Try to call map.updateSize(); after expanding the map section.

@khavrenko
Copy link
Author

thanks, it helps with setTimeout usage

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

2 participants