I am trying to open a new window from an existing window, which will contain a map with an extent derived from the original window. In other words, the user will zoom to an area in the original window, click a button, then a new window will open with a map set to the zoomed extent. I am using the ArcGIS Javascript API. I have tried several JS/jquery/html methods to make this work, (window.load, ,$window.ready)..but nothing has worked for me. I continue to get an error in my new page saying that 'map' is undefined, and I can see in Firebug that my function to set the new extent based on the extent of the original page runs before the page is fully loaded. I hope I am explaining this problem clearly. Does anyone have any ideas? Thanks,
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
To determine whether the
Have you ensured that you're not trying to run code in the "new" map until the page and map are both ready? See this sample from Esri, which contains:
|
|||||||||||
|