geoext1
geoext1 copied to clipboard
PrintMapPanel - resolutions from source map not properly copied
A Heron user found an issue when using PrintMapPanel (via ux PrintPreview) with an "irregular" resolutions array for a TMS layer. Diving into this I found an old GeoExt ticket on Trac: http://trac.geoext.org/ticket/306. It appeared to be solved, but the committed code was taken out from PrintMapPanel in a later commit:
Patch went in this revision (see e.g. line 227): https://github.com/geoext/geoext/blob/613eaa8836a13c88f727fbbfdbe5148c14604195/lib/GeoExt/widgets/PrintMapPanel.js
But went out, possibly by accident, in a next commit: https://github.com/geoext/geoext/commit/ac5de9a2ac14a6f14122dd872196035059e67614#lib/GeoExt/widgets/PrintMapPanel.js
I have made a fix for Heron which worked (just copying with slice(0) the resolutions array from the source map) by overriding PrintMapPanel.initComponent: http://lib.heron-mc.org/heron/latest/lib/override-geoext.js
I can supply a patch/pull if you like. Possibly also affects GeoExt2?