Protected Optional_The currently selected dpi.
Protected_The supported DPIs by the print service.
Protected Optional_Feature representing the page extent.
Protected_Whether this manger has been initiated or not.
Protected Optional_The currently selected layout.
Protected_The supported layouts by the print service.
Protected Optional_The currently selected output format.
Protected_The supported output formats by the print service.
Protected Optional_The currently set map size defined with its width and height.
Protected Optional_The currently selected scale.
Protected_The supported scales by the print service.
Protected OptionalcapabilitiesProtectedcredentialsProtected OptionalcustomProtected OptionalcustomProtectedeventsThe registered events.
Protected OptionalextentProtected OptionalheadersProtectedlayerProtectedlegendProtectedmapProtectedmaskProtectedmethodProtectedserializersProtectedtimeoutProtected OptionaltransformProtected OptionalurlStaticCUSTOM_The key in the layer properties to lookup for custom serializer options.
StaticEXTENT_The name of the vector layer configured and created by the print manager.
StaticINFO_The capabilities endpoint of the print service.
StaticTRANSFORM_The name of the transform interaction configured and created by the print manager.
ProtectedcalculateCalculates the extent based on a scale.
Optionalscale: numberThe scale to calculate the extent for. If not given, the current scale of the provider will be used.
The extent.
ProtectedcalculateCalculates 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.
ProtecteddownloadOpens the given URL in a new browser tab to download the given response (if header are set correctly).
The url to open.
ProtectedfilterChecks if a given layer should be printed.
The layer to check.
Whether the layer should be printed or not.
ProtectedfilterChecks 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.
ProtectedgetReturns 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.
ProtectedgetComputes 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.
ProtectedgetCollects 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.
ProtectedinitInitializes the manager instance. Typically called by subclasses via init().
The capabilities to set.
ProtectedinitInitializes the print extent feature.
The extent feature.
ProtectedinitInitializes the print extent layer.
ProtectedinitInitializes the transform interaction.
Whether this manager has been initiated or not.
Whether this manager has been initiated or not.
ProtectedloadLoads the print capabilities from the provided remote source.
Registers an event.
The name of the event to register.
The callback function to register.
ProtectedonCalled on the extentLayer's postrender event.
The ol render event.
ProtectedonCalled on the extentLayer's prerender event.
The ol render event.
ProtectedonCalled 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.
OptionalforceDownload: 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.
ProtectedserializeSerializes/encodes the given layer.
The layer to serialize/encode.
The serialized/encoded layer.
ProtectedserializeSerializes/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.
ProtectedvalidateValidates the given HTTP fetch response.
The response to validate.
The constructor