Skip to content

zucha/tiles-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tiles proxy

Yii2 action for OSM tiles proxy

Configuration

Add Proxy action to controller:

    public function actions ()
    {
        return [
            'index' => [
                'class' => Proxy::class
            ],
        ];
    }

Configuration is stored into params configuration.

'tiles-proxy' => [
            'source-dir' => "@app/web/tiles/:source",
            'default-source' => 'mapnik',
            'sources' => [
                'mapnik' => [
                    'https://a.tile.openstreetmap.org/:z/:x/:y.png',
                    'https://b.tile.openstreetmap.org/:z/:x/:y.png',
                    'https://c.tile.openstreetmap.org/:z/:x/:y.png'
                ],
                'topo' => [
                    'https://a.tile.opentopomap.org/:z/:x/:y.png',
                    'https://b.tile.opentopomap.org/:z/:x/:y.png',
                    'https://c.tile.opentopomap.org/:z/:x/:y.png',
                ],
            ]
        ]

About

Yii2 action for OSM tiles proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages