[Users] Print panel overview not transforming from EPSG:900913 to EPSG:4326
Robert Buckley
robertdbuckley at yahoo.com
Wed Oct 6 10:29:32 CEST 2010
Hi,
This is regarding the printProvider code availablke here.
http://dev.geoext.org/trunk/geoext/examples/print-preview.html
I want to provide a print function like in the example. My map uses googlemaps
and therefore the mapPanel is transforming epsg:900913 to EPSG:4326
Althought the print function defines the mapPanel as a source map, the map
options are not being loaded. When I try to print, the map window shows the
region west of Africa in the Atlantic (coordinates 0 , 0)
Here is my code..copied from the example.
{
text: "Drucken...",
icon: '../images/printer.png',
handler: function(){
// A window with the PrintMapPanel, which we can use to adjust
// the print extent before creating the pdf.
printDialog = new Ext.Window({
title: "Druckansicht",
layout: "fit",
width: 350,
height: 350,
items: [{
xtype: "gx_printmappanel",
sourceMap: mapPanel,
printProvider: printProvider
}],
bbar: [{
text: "PDF Erstellen...",
icon: '../images/printer.png',
handler: function(){ printDialog.items.get(0).print(); }
}]
});
printDialog.show();
}
}
Can anyone explain what I am forgetting here?
Thanks for any help,
Robert Buckley
More information about the Users
mailing list