Point rails port instalation to own tileserver

Tom Hughes tom at compton.nu
Thu Jul 7 17:34:39 UTC 2022


On 07/07/2022 18:10, Torsten Kuehnel wrote:
> Maybe this is not the right place to ask, but
> 
> how do i point a running railsport to my own tileserver ? Following the instructions on https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md and further reading on https://github.com/openstreetmap/openstreetmap-website/blob/master/CONFIGURE.md did not expose such information to me.

That's not something that is configurable currently, mostly
because it's not obvious how to do it given we support multiple
tile layers already.

Basically you need to edit the code that configures the layers
which is here:

   app/assets/javascripts/leaflet.map.js

That currently uses the layers from the leaflet-osm plugin but
you can just change it to use the generic tile layer and specify
the URL you want.
> Is importing own data with osmosis into the rails database the key ?

No that won't help at all. Your own data is already there I assume
and it certainly won't affect which tiles are displayed.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://compton.nu/



More information about the rails-dev mailing list