TileProvider Class¶
- class BeastBytes\Yii\Leaflet\Layers\Raster\TileProvider¶
Register and provide a list of tile layers that can be used on the map
The list of tile providers is an array where the keys are the names of tile providers and the values are tile provider configuration
- __construct(array|string|null $tileProviders = null)¶
Create a new TileProvider instance
- Parameters:
$tileProviders (
array{url: string, options: ?|string|null) –Either:
array: An array where the keys are the names of tile providers and the values are tile provider configuration string: Absolute path to a file that returns an array as described above null: use the package tile providers
$options (
array<string, mixed>.) – TileProvider options
- Returns:
A new TileProvider instance
- Return type:
See also