Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Print Plugin

offtherailz edited this page Sep 12, 2012 · 14 revisions

Needed files in build Config

  • GeoExt/plugins/PrintPageField.js
  • GeoExt/plugins/PrintProviderField.js
  • GeoExt/widgets/PrintMapPanel.js
  • plugins/Print.js
  • app/static/externals/PrintPreview/lib/GeoExt.ux/PrintPreview.js

Notes about protectred data

Print plugin uses Wms GetMap requests to compose the map. So the servers under basic authentication protection must have an exception to allow the geoserver instance using the print plugin functionality to send requests. Exemple configuration for Apache2:

    <Location /protected>
        AuthType Basic
        AuthName acque-access
        AuthUserFile /etc/apache2/passwd/protected
        Require valid-user
        Order allow,deny
        Allow from 217.133.17.186    #proxy address 
        Satisfy any
    </Location>

##Configuration

configuration exemple:

   {
	  "ptype":"gxp_print",
	  "customParams":{
		 "outputFilename":"mapstore-print"
	  },
	  "printService":"http://192.168.1.43:8080/acque/geoserver/pdf/",
	  "legendPanelId":"legendPanel",
	  "actionTarget":{
		 "target":"paneltbar",
		 "index":4
	  }
   }

Clone this wiki locally