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: “https://api.tiles.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token=pk.eyJ1Ijoid2hlcmVzbXl3YXZlcyIsImEiOiJjanJ6cGZtd24xYmU0M3lxcmVhMDR2dWlqIn0.QQSWbd-riqn1U5ppmyQjRw

It ran normally.
But when I used the URL tile like docs.webodm:
url: “http://192.168.55.110:8000/api/projects/1/tasks/12804bb8-7c3b-47c4-b5ec-065882bc729e/orthophoto/tiles/{z}/{x}/{y}.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyLCJlbWFpbCI6IiIsInVzZXJuYW1lIjoiMWFuaHRoYW5oMTk5NyIsImV4cCI6MTU4ODUyMDMxOH0.EcpM06y_i1st8yR2s7M-BWVEc6CXdqnAihYnZIRmN-E”,

It didn’t run
Could somebody please help me?

look here: https://community.opendronemap.org/t/cant-get-the-orthophoto-tms-layer/4190

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