[Users] Trouble in adding a print function to GeoExt MapPanel
Christian Mayer
mayer at terrestris.de
Mon Sep 24 07:47:49 CEST 2012
Hi Shadin,
this code seems a bit broken, or is it just a snippet out of its context?
> |printProvider : Ext.create('GeoExt.data.PrintProvider', {
> method: "GET",
> capabilities: printCapabilities,
> customParams: {
> mapTitle: "GeoExt Printing Demo",
> comment: "This demo shows how to use GeoExt.PrintMapPanel"
> }
> }),|
maybe you try it like this:
var printProvider = Ext.create('GeoExt.data.PrintProvider', {
method: "GET", // "POST" recommended for production use
capabilities: printCapabilities, // provide url instead for lazy loading
customParams: {
mapTitle: "GeoExt Printing Demo",
comment: "This demo shows how to use GeoExt.PrintMapPanel"
}
});
Best regards,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120924/e11241a3/attachment.htm
More information about the Users
mailing list