I am trying to make a interactive print pagein my primary app, i set some global variables with extent, layers, graphics, etc..i then call window.open("print.html","PrintWindow");print.html is an interactive map template. its init function is function init() {
// esriConfig.defaults.map.sliderLabel = null;
// var startExtent = new esri.geometry.Extent({"xmin":-9228363.6,"ymin":3140074.58,"xmax":-9116765.5,"ymax":3202141.45,"spatialReference":{"wkid":102100}});
printpagemap = new esri.Map("printpagemap",{extent:opener.printMapExtent, logo:false});
dojo.forEach(opener.printMapLayers, dojo.hitch(this, function(layer){
printpagemap.addLayer(layer);
}));
dojo.forEach(opener.printGraphics.graphics, dojo.hitch(this, function(graphic){
printpagemap.graphics.add(graphic);
}));
navToolbar = new esri.toolbars.Navigation(printpagemap);
}
So the references to "opener" are the parent app. This works great, except, as so as i do navigation on the print map, it destroys all navigation on the parent app, even though its in a new tab.If i navigate on the parent app, the map the is updated is on the print page only!!! I.e. the zoom slider moves in on the parent app but its map does not update, the map in the other tab does!also graphics become completely buggered. My guess is i am cross naming somewhere, but since the printmap has a completely different id i thought the would be independent?please help, thanks.