DOKK / manpages / debian 12 / tirex / Tirex::Map.3pm.en
Tirex::Map(3pm) User Contributed Perl Documentation Tirex::Map(3pm)

Tirex::Map - A Tirex map configuration

my $map = Tirex::Map->new();

A Tirex map configuration. It always contains the name, tile directory and zoom range for this map. Depending on the backend there can be more options.

Get map by name.

Clear list of maps.

Get map for a metatile.

Will croak if the map named in the metatile does not exist. Will also croak if the zoom given in the metatile is out of range.

Tirex::Map->new( ... )

Create new map configuration.

Default values for minimum zoom (minz) is 0, for maximum zoom (maxz) it's 17.

Tirex::Map->new_from_configfile($filename, $renderer)

Create new map config from a file for a given renderer.

Croaks if the file does not exist.

Get name of this map.

Get renderer of this map.

Get filename of config file for this map. This only works if the map was created from a config file. Otherwise it will return undef.

Get tile directory of this map.

Get minimum zoom value of this map.

Get maximum zoom of this map.

Return human readable description of this map.

Return parameters of this map as hash.

Return status of all configured maps.

2023-04-11 perl v5.36.0