Hello
after i installed the pluging printing in geoserver 2.1.0, i tried the
exemple: http://api.geoext.org/1.0/examples/print-extent.html
In the pdf i got just the title but not the map. It works when i use the
layer("Tasmania", "http://demo.opengeo.org/geoserver/wms", {layers:
"topp:tasmania_state_boundaries"}, {singleTile: true})]. With my layer i
doesn't work. i see it in the mappanel but not in the PDF.
this is the code:
var mapPanel, printProvider;
Ext.onReady(function() {
// The printProvider that connects us to the print service
printProvider = new GeoExt.data.PrintProvider({
method: "GET", // "POST" recommended for production use
capabilities: printCapabilities, // from the info.json script in the
html
customParams: {
mapTitle: "Printing Demo",
comment: "This is a map printed from GeoExt."
}
});
var printExtent = new GeoExt.plugins.PrintExtent({
printProvider: printProvider
});
// The map we want to print, with the PrintExtent added as item.
mapPanel = new GeoExt.MapPanel({
renderTo: "content",
width: 450,
height: 320,
layers: [new OpenLayers.Layer.WMS("province",
"http://localhost:8080/geoserver/wms",
{layers: "sf:province"}, {singleTile: true})],
center: [-7.50,33.5],
zoom: 6,
plugins: [printExtent],
bbar: [{
text: "Create PDF",
handler: function() {
// the PrintExtent plugin is the mapPanel's 1st plugin
mapPanel.plugins[0].print();
}
}]
});
printExtent.addPage();
});
thank you
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/print-a-map-doesn-t-work-correctly-with-my-layers-tp6365614p6365614.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users