hi
attached a simple example of how to initialize a map und wire up an Event handler. this works fine.
now, i have to adapt this code to initialize a map in a div, that isn't accessible at the time of the initial load of the page. the whole map-initialization und eventhandler-wiring would need to be placed in a function, that can be accessed at runtime.
how would i do that? all i tried so far was poor...
regards
Solved! Go to Solution.
I may have missunderstood. Here's a sample of how to create the div and map from scratch after the page is loaded:
Have a look at dojo/domReady! — The Dojo Toolkit - Reference Guide
i'm not shure, if domReady solves this. i'm using asp.net to create an aspx-page that loads several ascx-controls depending on the users interaction. only if one specific button gets hit, the control holding the map-div is loaded. so during the initial loading of the page, the div is never accessible...
I may have missunderstood. Here's a sample of how to create the div and map from scratch after the page is loaded: