Skip to content

agressin/pydeck_myTileLayer

Repository files navigation

Tile layer for pydeck

Using custom layer in pydeck to handle Tile layer ( based on pydeck_custom_layer )

import pydeck

pydeck.settings.custom_libraries = [
    {
        "libraryName": "MyTileLayerLibrary",
        "resourceUri": "https://cdn.jsdelivr.net/gh/agressin/pydeck_myTileLayer@master/dist/bundle.js",
    }
]

DATA_URL = 'https://c.tile.openstreetmap.org/{z}/{x}/{y}.png'

custom_layer = pydeck.Layer(
    "MyTileLayer",
    DATA_URL
)

About

TileLayer custom pydeck layer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published