Protected
Optional
_dpiThe currently selected dpi.
Protected
_dpisThe supported DPIs by the print service.
Protected
Optional
_extentFeature representing the page extent.
Protected
_initiatedWhether this manger has been initiated or not.
Protected
Optional
_layoutThe currently selected layout.
Protected
_layoutsThe supported layouts by the print service.
Protected
Optional
_outputThe currently selected output format.
Protected
_outputThe supported output formats by the print service.
Protected
Optional
_printThe currently set map size defined with its width and height.
Protected
Optional
_scaleThe currently selected scale.
Protected
_scalesThe supported scales by the print service.
Protected
Optional
capabilitiesProtected
credentialsProtected
Optional
customProtected
Optional
customProtected
eventsThe registered events.
Protected
Optional
extentProtected
Optional
headersProtected
layerProtected
legendProtected
mapProtected
maskProtected
methodProtected
serializersProtected
timeoutProtected
Optional
transformProtected
Optional
urlStatic
CUSTOM_The key in the layer properties to lookup for custom serializer options.
Static
EXTENT_The name of the vector layer configured and created by the print manager.
Static
INFO_The capabilities endpoint of the print service.
Static
TRANSFORM_The name of the transform interaction configured and created by the print manager.
Protected
calculateCalculates the extent based on a scale.
Optional
scale: numberThe scale to calculate the extent for. If not given, the current scale of the provider will be used.
The extent.
Protected
calculateCalculates the current rotation of the print extent feature.
Dispatches the given event with the provided data.
The name of the event to dispatch.
The data to apply to the event callback.
Protected
downloadOpens the given URL in a new browser tab to download the given response (if header are set correctly).
The url to open.
Protected
filterChecks if a given layer should be printed.
The layer to check.
Whether the layer should be printed or not.
Protected
filterChecks if the legend of a given legend should be printed.
The layer to check.
Whether the legend of the layer should be printed or not.
Protected
getReturns the closest scale to current print feature's extent.
Returns the closest scale to fit the print feature's extent into the current extent of the map.
Returns an individual custom param.
The custom param to get.
The custom param
Returns the custom params.
The custom params
Returns the currently selected dpi.
The currently selected dpi.
Returns all supported dpis.
The supported dpis.
Returns the extent layer.
The extent layer.
Returns the currently selected layout.
The currently selected layout.
Returns all supported layouts.
The supported layouts.
Returns the currently selected output format.
The currently selected output format.
Returns all supported output formats.
The supported output formats.
Protected
getComputes size of print extent in pixel depending on dimensions of print map and print scale.
Print map size containing its width and height.
Print scale.
Print extent size.
Returns print map size for chosen layout.
The map size.
Protected
getCollects the payload that is required for the print call to the print servlet.
The print payload.
Returns the currently selected scale.
The currently selected scale.
Returns all supported scales.
The supported scales.
Initializes the manager.
Protected
initInitializes the manager instance. Typically called by subclasses via init().
The capabilities to set.
Protected
initInitializes the print extent feature.
The extent feature.
Protected
initInitializes the print extent layer.
Protected
initInitializes the transform interaction.
Whether this manager has been initiated or not.
Whether this manager has been initiated or not.
Protected
loadLoads the print capabilities from the provided remote source.
Registers an event.
The name of the event to register.
The callback function to register.
Protected
onCalled on the extentLayer's postrender
event.
The ol render event.
Protected
onCalled on the extentLayer's prerender
event.
The ol render event.
Protected
onCalled on translate interaction's scaling
event.
Calls the print servlet to create an output file in the requested format and forces a download of the created output.
Note: The manager has to be initialized prior this method's usage.
Optional
forceDownload: booleanWhether to force a direct download of the print result or to return the download url.
If forceDownload is set to false, the download url of the print result will be returned in a Promise.
Resets the rotation of the print extent feature.
Protected
serializeSerializes/encodes the given layer.
The layer to serialize/encode.
The serialized/encoded layer.
Protected
serializeSerializes/encodes the legend payload for the given layer.
The layer to serialize/encode the legend for.
The serialized/encoded legend.
Sets an individual custom param.
The key of the param.
The value of the param.
Sets the custom params.
The params to set.
Sets the dpi to use.
The value of the dpi to use.
Sets the layout to use. Updates the print extent accordingly.
The name of the layout to use.
Setter for legend filter
The new legend filter function
Sets the output format to use.
The name of the output format to use.
Sets the map size to use while printing.
The object containing width and height of printed map.
Rotates the print extent by the amount of the given rotation.
The amount to rotate.
Sets the scale to use. Updates the print extent accordingly.
The value of the scale to use.
Shuts down the manager.
Unregisters an event.
The name of the event to unregister.
The callback function to unregister.
Updates the geometry of the print extent feature to match the current scale.
Protected
validateValidates the given HTTP fetch response.
The response to validate.
The constructor