print-example.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <html>
  2. <head>
  3. <title>Printing ux SimplePrint Example</title>
  4. <script type="text/javascript" src="http://extjs.cachefly.net/ext-2.2.1/adapter/ext/ext-base.js"></script>
  5. <script type="text/javascript" src="http://extjs.cachefly.net/ext-2.2.1/ext-all.js"></script>
  6. <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css" />
  7. <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/examples/shared/examples.css" />
  8. <script src="http://openlayers.org/api/2.9.1/OpenLayers.js"></script>
  9. <script type="text/javascript" src="http://dev.geoext.org/extensions/geoext/lib/GeoExt.js"></script>
  10. <!-- script resources for this ux -->
  11. <script type="text/javascript" src="http://dev.geoext.org/extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux/SimplePrint.js"></script>
  12. <script type="text/javascript" src="http://dev.geoext.org/extensions/geoext.ux/ux/SimplePrint/examples/SimplePrint.js"></script>
  13. <!--
  14. Using the script tag method to get the print service capabilities and
  15. make them available in the printCapabilities variable.
  16. The script tag below can be removed when configuring the printProvider
  17. with url instead of capabilities.
  18. If you are running GeoServer on a different host/port, you will need to
  19. download this page to {GEOSERVER_DATA_DIR/www} and edit this URL
  20. appropriately.
  21. -->
  22. <script type="text/javascript" src="http://localhost:8080/geoserver/pdf/info.json?var=printCapabilities"></script>
  23. </head>
  24. <body>
  25. <h1>SimplePrint Form using GeoExt.data.PrintProvider</h1>
  26. <p>This sample page is a simple app using the GeoExt printing control
  27. to test installation of the GeoServer printing module. This module
  28. wraps the <a href="http://trac.mapfish.org/trac/mapfish/wiki/PrintModuleInstallation">Mapfish print module</a>.
  29. See also <a href="http://docs.geoserver.org/stable/en/user/community/printing/">the GeoServer Manual</a>
  30. for more information about the manual. If the viewer on this page
  31. fails to load, then you have not properly installed the extension.</p>
  32. <p>The rectangle and handles on the map can be used to change center,
  33. scale and rotation. Dragging one of the handles will change the scale.
  34. Dragging the corner handles on their edges will rotate the extent, if
  35. supported by the layout. Holding the SHIFT key will constrain rotation
  36. to 45&deg; steps.</p>
  37. <p>See <a href="SimplePrint.js">http://dev.geoext.org/extensions/geoext.ux/ux/SimplePrint/examples/SimplePrint.js</a> for the source code.</p>
  38. <div id="content"></div>
  39. </body>
  40. </html>