source:
trunk/workshop-routing-foss4g/web/GeoExt/examples/print-preview-osm.html
@
80
| Revision 76, 1.7 KB checked in by djay, 14 years ago (diff) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | <html> |
| 2 | <head> |
| 3 | <title>GeoExt PrintMapPanel Example</title> |
| 4 | |
| 5 | <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.2.1/adapter/ext/ext-base.js"></script> |
| 6 | <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.2.1/ext-all.js"></script> |
| 7 | <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.2.1/resources/css/ext-all.css" /> |
| 8 | <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.2.1/examples/shared/examples.css" /> |
| 9 | <script src="http://openlayers.org/api/2.10/OpenLayers.js"></script> |
| 10 | <script type="text/javascript" src="../script/GeoExt.js"></script> |
| 11 | |
| 12 | <script type="text/javascript" src="print-preview-osm.js"></script> |
| 13 | |
| 14 | <!-- The script below will load the capabilities of the print service |
| 15 | and save them into the global printCapabilities variable. Instead |
| 16 | of this, the PrintProvider can be configured with a url and take |
| 17 | care of fetching the capabilities. --> |
| 18 | <script type="text/javascript" src="http://demo.opengeo.org/geoserver/pdf/info.json?var=printCapabilities"></script> |
| 19 | |
| 20 | </head> |
| 21 | <body> |
| 22 | <h1>Using a Print Preview</h1> |
| 23 | <p>This example shows the how to use GeoExt.PrintMapPanel, to create |
| 24 | a printable OSM map. It requires the |
| 25 | <a href="http://trac.mapfish.org/trac/mapfish/wiki/PrintModuleInstallation">MapFish</a> |
| 26 | or <a href="http://docs.geoserver.org/stable/en/user/community/printing/">GeoServer</a> |
| 27 | print module.</p> |
| 28 | <p>The js is not minified so it is readable. See <a href="print-preview-osm.js">print-preview-osm.js</a>.</p> |
| 29 | <div id="content"></div> |
| 30 | </body> |
| 31 | </html> |
Note: See TracBrowser
for help on using the repository browser.