<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; ">Sorry , I forgot the code and the url</div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; "><a href="http://maps.zgb.de/www/eeg/gfi.html">http://maps.zgb.de/www/eeg/gfi.html</a></div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; ">// map settings for the mappanel.map</div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size:
12pt; "><br></div><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">var map = new OpenLayers.Map("map",{</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>projection:epsg900913,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">                </span>displayProjection: epsg900913,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">        </span>units: "m",</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>maxResolution: 156543.0339,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">
<span class="Apple-tab-span" style="white-space:pre">        </span>maxExtent: new OpenLayers.Bounds(912352.369449, 6720955.021855, 1391765.410767, 7014473.210418),</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>restrictedExtent: new OpenLayers.Bounds(871993.618568, 6598044.280668, 1483489.84474, 7087241.261605),</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">        </span>controls: [new OpenLayers.Control.MouseDefaults()</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>,new OpenLayers.Control.PanZoomBar()</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">        
        </span>,new OpenLayers.Control.MousePosition()</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>,new OpenLayers.Control.ScaleLine({geodesic: true})]</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> });</font></div></div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">var printDialog;</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">        </span> // The PrintProvider that connects us to the print service</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">                </span>var printProvider = new
GeoExt.data.PrintProvider({</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> method: "GET", // "POST" recommended for production use</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> capabilities: printCapabilities, // provide url instead for lazy loading</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> customParams: {</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> mapTitle: "ZGB Energieportal" ,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> comment:date</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> }</font></div><div><font class="Apple-style-span"
face="arial, helvetica, sans-serif"> });</font></div></div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; ">// mappanel for the main app</div><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">var mappanel = new GeoExt.MapPanel({</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">        </span>id:'mappanel',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> region:"center",</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> height: 400,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> width: 600,</font></div><div><font
class="Apple-style-span" face="arial, helvetica, sans-serif"> map: map,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>bbar:[{</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">        </span>xtype: "label",</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">        </span>text: "Maßstab = 1 : "</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">                </span>}],<span class="Apple-tab-span" style="white-space:pre">                        </span></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span
class="Apple-tab-span" style="white-space:pre">                </span>tbar: [toolbarItems,'','-',</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, helvetica, sans-serif">                </font></span></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>{</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> text: "Drucken...",</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                        </span>icon: '../images/printer.png',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                        </span>tooltip: "kartenansicht in PDF Format exportieren",</font></div><div><font class="Apple-style-span" face="arial,
helvetica, sans-serif"> handler: function(){</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> // A window with the PrintMapPanel, which we can use to adjust</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> // the print extent before creating the pdf.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> printDialog = new Ext.Window({</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> title: "Druckansicht",</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">
layout: "fit",</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> // autoWidth: true,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> height: 400,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                                        </span>width: 300,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> items: [{</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> xtype: "gx_printmappanel",</font></div><div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"> sourceMap: mappanel,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> printProvider: printProvider</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> }],</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> bbar: [{</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> text: "PDF Erstellen...",</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">
handler: function(){</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                                                </span>printDialog.items.get(0).print();</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                                                </span>}</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> }]</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> });</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> printDialog.show();</font></div><div><font
class="Apple-style-span" face="arial, helvetica, sans-serif"> }</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> },</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>'->','Ortssuche',' ',' ',geoNameSearchCombo]</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> });</font></div></div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">Von:</span></b> Robert Buckley <robertdbuckley@yahoo.com><br><b><span
style="font-weight: bold;">An:</span></b> users@geoext.org<br><b><span style="font-weight: bold;">Gesendet:</span></b> Donnerstag, den 25. August 2011, 8:55:06 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> [Users] Still having print preview problems<br></font><br><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;color:#000000;"><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;">Hi,</div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;"><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;">I have been working on this for ages and have never had a satisfactory result. Maybe someone can help.</div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;"><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;">I would like a simple print preview window to export a pdf of my mapPanel. I have the following
problems...</div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;"><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;">1.
The gx_printmappanel has either the wrong/or no coordinate system APART from when I switch the base map to OSM </div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;">2. The gx_printmappanel map does not record the zoom level of the mapPanel i.e. when I zoom in in the main application, the printpreview window is still on maxextent.</div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;">3. When the gx_printmappanel shows the osm baselayer, it is still not printed</div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;">4. If I zoom into the printPreview map a few times to find a smaller area which I want to print ( which shouldn´t be necessary because the printPreview should take on the view in the mapPanel of the app), I get the following error message on export</div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;"><br></div><div
style="font-family:arial, helvetica, sans-serif;font-size:12pt;"><br></div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><h3>Request denied by WatchGuard HTTP proxy.</h3><b>Reason: </b>request URL path too large</span><span class="Apple-style-span" style="font-family:'Times New Roman';font-size:medium;"> <br></span><div><div><br></div><div>The path is very very long and as far as I can see, every time I zoom the BBOX is contained in the URL. And this is then blocked by my firewall ( I assume)</div><div><br></div><div><br></div><div><br></div><div><br></div><div>I´m sure that the problems 1,2 and 4 will be solved as soon as the printpreview records the mapPanel of the app. </div><div><br></div><div>Any help would be gratefully accepted,</div><div><br></div><div>yours,</div><div><br></div><div>Rob</div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;
"></div>
</div></div></div></div><div style="color: black; font-family: arial, helvetica, sans-serif; font-size: 12pt; position: fixed; "></div>
</div></body></html>