thank you for quick reply, i installed traccar independently in the same system, with its default port 8082 and tomcat on 8080,
i placed the tiles in tomcat server app folder.
it is functional when i launch from index.html in normal browser. but when i place the url in traccar custom map link it is not ...
please would you info that in your tiles folder is there any index.html to guide the browser?
and which server software would be more suitable for {z}{x}{y}.png tiles data.
thank you in advance.
The thing is that the "localhost" is not workable for other users that is not on the server, since "localhost" will point to the device the user is on. So your plan to use a local server OTHER than the Traccar (web) server will not work. How Traccar handles the URL would need to be changed. I suggest you use the Traccar web server for your tiles as well as the app.
thank you for reply, as i am working in one of the universities in Africa, they cannot afford and they need a free software system. if my tiles are accessible form the traccar application i am going to host it in university web server with local maps prepared by our dept. so it is not feasible to go for commercial version.
my main concern is how a {z}{x}{y}.png files will be accessed without index,html as all the software generate tiles with some index.html or xml file.
if there is any update / or share experience please inform to me.
once again thank you..
Traccar is free if you host it yourself. So it's not really the software you pay for.
Regarding the index.html
I don't really follow you. Tiles are just PNG
files and the folder path, and file name, structure need to obey the {z}{x}{y}.png
schema. What Traccar (and other map software) do is to script this URL and replace {z}, {x}, and {y}
with digits corresponding to the coordinates you as a user are looking at, thus downloading correct tiles.
I export tiles using QGIS (with the plugin Qtiles) and the index.html
is not exported if not wanted. It is only used for the exporting person to look at the tiles manually. It will never be used by Traccar.
So don't fall in your own assumed ways of doing this. Follow my example (that I found together with the developer of Traccar) and use the web-server of Traccar.
really thank you for your update,sorry for delay in reply as i am trying on Qtiles,. as i understood from your post. is this correct path C:/Program%Files/Traccar/web/OwnTiles/{z}/{x}/{y}.png to place in traccar server as custom url option? my tiles are in OwnTiles sub folder. localhost:8082 is my default port of traccar.( but did not work) thank you in advance.
As stated earlier, add this in the settings:
/OwnTiles/{z}/{x}/{y}.png
i re installed traccar in C:\Traccar. then generated tiles of my region from z0 to z18 in qtile
. the folder OwnTiles placed in C:\Traccar\web, after i place OwnTiles folder. root looks as
C:\Traccar\web\OwnTiles. login in to traccar as admin : then in custom settings palced /OwnTiles/{z}/{x}/{y}.png as url.
the error report of browser is
http://localhost:8082/OwnTiles/4/12/7.png
Failed to load resource: t the server responded with a status of 404 (Not Found)
http://localhost:8082/OwnTiles/4/11/7.png
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8082/OwnTiles/4/11/8.png
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8082/OwnTiles/4/12/8.png
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8082/OwnTiles/4/13/7.png
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8082/OwnTiles/4/13/8.png
Failed to load resource: the server responded with a status of 404 (Not Found)
please help
ya, finally it is functional, i replaced the missed tiles by regeneration...thank you so much..
Good job. :)
If you change it to
/OwnTiles/{z}/{x}/{y}.png
it should work without any problem. This is changed within Traccar settings.PS. given that you put the tiles in the
web
folder under the Traccar path and in that folder place a folder namedOwnTiles
.