You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2019-07-30 08:46:53

chrisfozz
Member
Registered: 2019-07-30
Posts: 2

Manually building a tile server (18.04 LTS)

I'd like to set up my own tile-server and have worked through the instructions  at-

https://switch2osm.org/manually-buildin … 18-04-lts/

This all works as it should and I can see the appropriate map at “http://localhost/sample_leaflet.html“.

At present on my webpages I'm useing tiles from OpenTopoMap and access these via 'http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png'.

I expect I need to change this to something like 'http://{s}.tile.myserver.org/{z}/{x}/{y}.png'

My question is – what do I need at the above url to serve up the tiles?

Offline

#2 2019-07-31 13:51:38

SomeoneElse
Member
Registered: 2010-10-13
Posts: 1,601

Re: Manually building a tile server (18.04 LTS)

Yes - something like that.  The https://github.com/SomeoneElseOSM/mod_t … aflet.html file actually contains:

L.tileLayer('http://127.0.0.1/hot/{z}/{x}/{y}.png', {
    attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);

If that works, then to access these tiles externally then you'll need to use a URL like "http://myserver.org/hot/{z}/{x}/{y}.png".  You can change the "hot" part to something else by editing "renderd.conf" and restarting the server.

Offline

#3 2019-08-09 19:12:44

chrisfozz
Member
Registered: 2019-07-30
Posts: 2

Re: Manually building a tile server (18.04 LTS)

Many thanks for the reply, it's slowly beginning to make sense and i can now access tiles as you describe above:)

Offline

Board footer

Powered by FluxBB