NAME
Geo::Leaflet::tileLayer - Leaflet tileLayer Object
SYNOPSIS
use Geo::Leaflet;
my $map = Geo::Leaflet->new;
my $tileLayer = $map->tileLayer(
url => 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
options => {
maxZoom => 19,
attribution => '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
}
);
DESCRIPTION
This package constructs a Leaflet tileLayer object for use on a Geo::Leaflet map.
CONSTRUCTORS
new
Returns a tileLayer object
osm
Returns the default OpenStreetMaps.org tileLayer.
my $tileLayer = Geo::Leaflet::tileLayer->osm;
PROPERTIES
url
METHODS
stringify
SEE ALSO
AUTHOR
Michael R. Davis
COPYRIGHT AND LICENSE
Copyright (C) 2024 by Michael R. Davis
MIT LICENSE