HSLayers.Print.PrintDialog (class)

HSLayers.Print.PrintDialog

class HSLayers.Print.PrintDialog(config)

Dialog for input print parameters

param Object config:
 
possible values (key / value pair):

map - {<a>OpenLayers.Map</a>} printTemplates - {Array of Array} - templates info

Example usage:

HSLayers.Print.printerUrl = "/hsprinter/print";
var dialog = new HSLayers.Print.PrintDialog({
    map: map,
    printTemplates: [
        ["basic.html", "pdf", "A4 portrait",[800,600]]
    ]
});
dialog.show();

Methods

application, before it is send to the server

HSLayers.Print.PrintDialog.updatePrintContext(data)

This is empty function, you can fix printer context in your

application, before it is send to the server

param Object data:
 printer conext
returns:modified printer context
rtype:Object
HSLayers.Print.PrintDialog.getForm()
HSLayers.Print.PrintDialog.initComponent()
HSLayers.Print.PrintDialog.onCancelClick()
HSLayers.Print.PrintDialog.onPrintClick()
HSLayers.Print.PrintDialog.setMap()

Main Menu


Table Of Contents

Previous topic

HSLayers.Popup.initialize (class)

Next topic

HSLayers.Print.PrintForm (class)

This Page