<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div>Hi,<br><br>I have basic printing capabilities bilt into a project which works ok, but the scale bar which is produced in the resulting pdf file is showing the wrong scale. It is about 1/3 too long!<br><br>I assume this is because it has not been set to geodesic:true but where do I set this? The code comes from PrintMapPanel.js in the widgets section of geoext, and there is no reference to a scale bar there.<br><br>does anyone know where this originates?<br><br>CODE:<br><br>var printDialog;<br> var printProvider = new GeoExt.data.PrintProvider({<br> method: "GET",<br> capabilities: printCapabilities,<br> customParams:
{<br> mapTitle: "ZGB Energieportal",<br> comment: date<br> }<br> });<br><br><br><br>Excerpt from my mapPanel...<br><br><br>new Ext.Button({<br> text: "Drucken...",<br> icon: '../images/printer.png',<br> tooltip: "kartenansicht in PDF Format exportieren",<br> handler: function() {<br> printDialog = new Ext.Window({<br>
items: [new GeoExt.PrintMapPanel({<br> map: {<br> projection: epsg900913,<br> displayProjection: epsg4326,<br>
maxResolution: 156543.0339,<br> maxExtent: new OpenLayers.Bounds(912352.369449, 6720955.021855, 1391765.410767, 7014473.210418)<br> },<br> sourceMap: mapPanel,<br> printProvider:
{<br> capabilities: printCapabilities<br> }<br> <br> })],<br> bbar:
[{<br> text: "PDF Erstellen...",<br> handler: function () {<br> printDialog.items.get(0).print()<br> }<br> }]<br>
});<br> printDialog.show()<br> }<br> })<br><br>yours,<br><br>Robert<br></div>
</div><br></body></html>