Module: webgis4u/ol/util/print

Methods

(static) print(map2print, callback)

Prints asynchron map as base 64 encoded string.
Parameters:
Name Type Description
map2print ol.Map The map to be printed
callback module:webgis4u/ol/util/print~PrintMapCallback
Source:
Throws:
Is thrown in the case the map cannot be exported.
Type
Error
Example
// calls the callback function.
ugis.ol.util.exportMap(myMap, function(print){console.log(print);});

Type Definitions

PrintMapCallback(result)

Callback used by print.
Parameters:
Name Type Description
result module:webgis4u/ol/util/print~PrintMapResult The result from the print operation
Source:

PrintMapResult

Type:
  • object
Properties:
Name Type Attributes Description
map string The original map
overviewMap string <optional>
The overviewMap map
scaleLine string <optional>
The scaleLine
Source: