| param config: | Object config |
|---|---|
| return: | GeoAdmin.Print |
Create a print action
Sample code to create a print (see also Print):
map = new GeoAdmin.Map();
mapPanel = new GeoAdmin.MapPanel({
region: 'center',
map: map
});
new Ext.Panel({
renderTo: "map",
layout: "border",
height: 400,
width: 600,
items: [
mapPanel
],
bbar: [
new GeoAdmin.Print({
text: OpenLayers.i18n('print map (popup)'),
printPanelOptions: {
mapPanel: mapPanel
},
windowOptions: {
title: OpenLayers.i18n('print map')
}
}),
new GeoAdmin.Print({
printBaseUrl: '/print',
text: OpenLayers.i18n('print map (panel)'),
printPanelOptions: {
renderTo: 'print',
mapPanel: mapPanel
}
})
]
});
Public properties in addition to those listed for Ext.Action.
boolean indicates if a footer is shown in the print form
boolean indicates if the layer legends must be printed.
boolean indicates if a title is shown in the print form
String defines a custom footer
String defines a custom logo (this needs to be an URL)
String defines a custom title
Ext.Window Window containing print form
String Print base URL
GeoExt.ux.SimplePrint Panel containing the print form
Object Options for the print panel
Object Options for the popup