Mercurial > hg > ChinaGisRestApi
comparison gis_gui/blocks/map.js @ 270:3a5d51c60e40
Open Map in new Window
author | fknauft |
---|---|
date | Fri, 27 Jan 2012 20:02:41 +0100 |
parents | f25ee0424ce6 |
children |
comparison
equal
deleted
inserted
replaced
269:442c1c3e6f8d | 270:3a5d51c60e40 |
---|---|
54 | 54 |
55 // new window button | 55 // new window button |
56 $(be).find(".map_newwindow_button").click(function () { | 56 $(be).find(".map_newwindow_button").click(function () { |
57 console.debug("map in new window"); | 57 console.debug("map in new window"); |
58 params = block.readMapParams(); | 58 params = block.readMapParams(); |
59 paramsString=JSON.stringify(params); | 59 var newWindow = window.open("blocks/map_newwindow.html?map_id="+params.id); |
60 var newWindow = window.open("blocks/map_newwindow.html?map_params="+paramsString); | |
61 //map=block.updateMap(newWindow.document.getElementById("map_box"),params); | 60 //map=block.updateMap(newWindow.document.getElementById("map_box"),params); |
62 }); | 61 }); |
63 | 62 |
64 // reload button | 63 // reload button |
65 $(be).find(".map_reload_button").click(function () { | 64 $(be).find(".map_reload_button").click(function () { |