I had the very same problem. Finally i solved it by making sure that the map gets created AFTER every container in the hierarchy is visible.
Could you share what you did to fix the problem? Thanks!
Here are some Plunkr examples that show a full screen map.
This solves the issue not only with Bootstrap. I moved from Default.html to Default.aspx and ran into this issue whereby map would stop at 400px height. Harold's recommendation did the trick for me.
position absolute always does the trick for me
#map {
position: absolute; height: 100%; width: 100%; margin: 0; padding: 0;}
If should just be the CSS. Can you post your code, maybe on JS Bin - Collaborative JavaScript Debugging ?
Besides setting the width and height of the map, the width and height of each parent element must be set, from the map div all the way up to HTML. Leaving any layer height out will cause the map height to reset to 400px. Same goes for width.
Hi, Vara.
I'm suffering from the same problem.
Could you teach me the way to solve the problem?
I'm not using DOJO container, so I think my situation is the same as your one.
Thanks in advance.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.