Documentation

Printer

Service class printer prints a map to an image file.

The printer processes a map object and saves the map as image output.

Table of Contents

$layerDataReader  : LayerDataReader
$manager  : ImageManager
__construct()  : mixed
Printer constructor.
print()  : void
Process a map and save its output to an image file.
render()  : Image
Processes a map object and returns the image as InterventionImage object.
extractLayersInOrder()  : array<string|int, mixed>
initializeContext()  : PrintContext

Properties

$manager

private ImageManager $manager

Methods

__construct()

Printer constructor.

public __construct() : mixed
Return values
mixed

print()

Process a map and save its output to an image file.

public print(Map $map, string $filename) : void
Parameters
$map : Map
$filename : string
Return values
void

render()

Processes a map object and returns the image as InterventionImage object.

public render(Map $map) : Image
Parameters
$map : Map
Tags
see
http://image.intervention.io

Documentation

Return values
Image

extractLayersInOrder()

private extractLayersInOrder(GroupContainer $container[, mixed $context = null ]) : array<string|int, mixed>
Parameters
$container : GroupContainer
$context : mixed = null
Return values
array<string|int, mixed>

initializeContext()

private initializeContext(PrintContext|null $context, TileLayer $layer) : PrintContext
Parameters
$context : PrintContext|null
$layer : TileLayer
Return values
PrintContext

Search results