This repository was archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Print Plugin
offtherailz edited this page Sep 12, 2012
·
14 revisions
GeoExt/plugins/PrintPageField.jsGeoExt/plugins/PrintProviderField.jsGeoExt/widgets/PrintMapPanel.jsplugins/Print.jsapp/static/externals/PrintPreview/lib/GeoExt.ux/PrintPreview.js
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
}
}