Can't display orthophoto TMS layer with leaflet

I used leaflet to display the orthophoto TMS layer. When I used the random URL tile like below:
url: “{z}/{x}/{y}.png?access_token=pk.eyJ1Ijoid2hlcmVzbXl3YXZlcyIsImEiOiJjanJ6cGZtd24xYmU0M3lxcmVhMDR2dWlqIn0.QQSWbd-riqn1U5ppmyQjRw

It ran normally.
But when I used the URL tile like docs.webodm:
url: “{z}/{x}/{y}.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyLCJlbWFpbCI6IiIsInVzZXJuYW1lIjoiMWFuaHRoYW5oMTk5NyIsImV4cCI6MTU4ODUyMDMxOH0.EcpM06y_i1st8yR2s7M-BWVEc6CXdqnAihYnZIRmN-E”,

It didn’t run
Could somebody please help me?

look here:

Does it mean I can’t use the URL tile directly as the docs said and I have to download the tile and upload it to my own server?

You can only use the URL directly either if you

  • Use on your own machine only
  • Have WebODM deployed on a public IP

The safest easy solution is to use a static hosting service with a downloaded version of the tiled data.

1 Like