AnsweredAssumed Answered

Map not filling div element on initial page load

Question asked by pdomja on Jul 15, 2014
Latest reply on Jul 15, 2014 by rscheitlin

Hi,

 

I'm just getting to grips with the javascript api, and in particular the AMD coding style.

 

I have a simple page that I am rewriting in AMD style, everything works, but except the map only displays in half the available space. Doing anything to the browser e.g. zooming in (in the browser, not the map), or re sizing the window, causes the map element to display correctly filling the page. I believe this is due to the dom not being ready when the map loads, but is ready when the page is re sized.

 

I am using "dojo/domReady!" in my initial require[] statement, so I cant see why the dom isnt ready. However to complicate things, I tried including a "dojo/ready" function which should also monitor when the dom loads, this the function simply triggered an alert box message, but the function never fires:(

 

mapDivErr.PNG

 

If any one has any suggestions how to resolve this, that would be great.

 

This page is being viewed in IE 11.

Attachments

Outcomes