Base class for the Ext components used to communicate with the print module, automatically take the layers from the given {OpenLayers.Map} instance.
mapfish. widgets. print.Base | Base class for the Ext components used to communicate with the print module, automatically take the layers from the given {OpenLayers.Map} instance. |
Properties | |
map | {OpenLayers.Map} The OpenLayers Map object. |
overrides | {Object} the map that specify the print module overrides for each layers. |
configUrl | {String} The URL to access .../config.json. |
config | {Object} The response from .../config.json. |
layerTree | {mapfish.widgets.LayerTree} An optional layer tree. |
grids | {Object} An optional dictionary of {Ext.grid.GridPanel}. |
serviceParams | {Object} Additional params to send in the print service Ajax calls. |
printing | {Boolean} True when a PDF is being generated. |
Functions | |
fillSpec | Add the page definitions and set the other parameters. |
{OpenLayers.Map} The OpenLayers Map object.
{Object} the map that specify the print module overrides for each layers. They can be used of changing the OL layer’s bahaviors for the print module. See the documentation in {mapfish.PrintProtocol}.
{mapfish.widgets.LayerTree} An optional layer tree. Needed only if you want to display legends.
Add the page definitions and set the other parameters. To be implemented by child classes.
This method can be overriden to customise the spec sent to the printer. Don’t forget to call the parent implementation.
printCommand | {mapfish.PrintProtocol} The print definition to fill. |