[Users] Print Module problems
Robert Buckley
robertdbuckley at yahoo.com
Tue Feb 1 13:43:54 CET 2011
Hi,
I am experiencing strange printing behaviour ever since I tried to intergrate
the PrintExtent plugin.
1. the printprovider gives a n empty pdf if the method is GET
2. The extent vector is always printed in the pdf (with POST) and is doesn´t
correspond to the print extent.
can anyone see what i´m doing wrong?
The map can be seen here...
http://maps.zgb.de:8080/geoserver/www/zgb_energie/geodatenportal.html
var printDialog;
var printProvider = new GeoExt.data.PrintProvider({
method: "POST", // "POST" recommended for production use
capabilities: printCapabilities, // from the info.json script in the
html
customParams: {
mapTitle: "ZGB Geodatenportal",
comment: "Fachthemen"
}
});
...
}), '-', new Ext.Button({
text: "Drucken...",
icon: '../images/printer.png',
tooltip: "kartenansicht in PDF Format exportieren",
handler: function () {
printDialog = new Ext.Window({
title: "Druckansicht",
layout: "fit",
autoWidth: true,
height: 400,
items: [{
xtype: "gx_printmappanel",
map: {maxExtent: new OpenLayers.Bounds(912352.369449,
6720955.021855, 1391765.410767, 7014473.210418)
},
projection: epsg900913,
displayProjection: epsg4326,
units: "m",
numZoomLevels: 21,
maxResolution: 156543.0339,
sourceMap: mapPanel,
plugins: [printExtent],
printProvider: printProvider
}],
bbar: [{
text: "PDF Erstellen...",
handler: function () {
printDialog.items.get(0).print()
}
}]
});
printDialog.show()
}
}), '->', quickzoom]
});
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110201/96c32338/attachment.htm
More information about the Users
mailing list