Python Plotly with OneMap Tiles

Hi all,

Would like to ask how to input as a custom maptile in plotly. Example: https://plot.ly/python/mapbox-layers/

I have tried:

“source”: [
https://maps-b.onemap.sg/v3/Default/{z}/{x}/${y}.png”

It does not seem to work.Thanks for any help!

Hi @FreshMints,

You may have input a typo,

${ }

remove the

$

. We are not using MapBox Layers so it might not work in this way. Our Basemap Endpoints are in-house customised xyz tile format.

However you can try:

mapbox_layers=[
    {
        "sourcetype": "raster",
        "source": [ "https://maps-all.onemap.sg/v3/Default/{z}/{x}/{y}.png"
        ]
    }
  ]