Tirex::Map(3pm)

Tirex::Map3pm

A tirex map configuration

Usage

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

Overview

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.

Methods

Tirex::Map->get('foo')

Get map by name.

Tirex::Map->clear();

Clear list of maps.

Tirex::Map->get_map_for_metatile($metatile)

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.

$map->get_name()

Get name of this map.

$map->get_renderer()

Get renderer of this map.

$map->get_filename()

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.

$map->get_tiledir()

Get tile directory of this map.

$map->get_minz()

Get minimum zoom value of this map.

$map->get_maxz()

Get maximum zoom of this map.

$map->to_s();

Return human readable description of this map.

$map->to_hash();

Return parameters of this map as hash.

Tirex::Map->status();

Return status of all configured maps.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From tirex 0.7.1-3+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.