rails server + nominatim + renderd server offline
romeo
romeo.petruca at perosoft.org
Wed Jan 16 12:31:07 UTC 2019
Hi,
from here:
https://switch2osm.org/manually-building-a-tile-server-18-04-lts/
http://nominatim.org/release-docs/latest/appendix/Install-on-Ubuntu-18/
https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md
installed rails server+nominatim+tiles server
and here:
https://help.openstreetmap.org/questions/36946/set-railsport-and-josm-to-use-local-tile-server
1. http://locahost/... access from local pc
2. http://<your_pc_ip>/... access from local network
tested '1' with pc offline and working
On 13.01.2019 18:28, romeo wrote:
>
> installed ok: rails server with opentreetmap OSM, nominatim local,
> renderd server openstreetmap
>
> in browser:
>
> http://localhost:3000 is ok, show the map online
>
> http://localhost/hot/0/0/0.png is ok show world map tile offline
>
> http://localhost/nominatim show dialog box search and blank window
> map, offline
>
> in openstreetmap-website/application.yml changed
>
> # nominatim_url: "https://nominatim.openstreetmap.org/"
> nominatim_url: "http://localhost/nominatim/"
>
> Now
>
> rails server + nominatim + renderd server working online
>
> offline
>
> rails server + nominatim + renderd server working but showing map from
> browser cache
>
> if i clear cache have no map on screen, but rails server + nominatim
> still working
>
> i believe must changing some js code, found this:
>
> openstreetmap/vendor/assets/openlayers/OpenStreetMap.js
>
> "https://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
> "https://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
> "https://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
> changed to
>
> "http://a.tile.localhost/hot/${z}/${x}/${y}.png",
> "http://b.tile.localhost/hot/${z}/${x}/${y}.png",
> "http://c.tile.localhost/hot/${z}/${x}/${y}.png"
>
> with no luck, still no map in browser
>
> i must redirect rails server to local tile server renderd, but i don't
> now how
>
> some help ?
>
>
>
>
> On 13.01.2019 14:30, Frederik Ramm wrote:
>
>> Hi,
>>
>> On 1/13/19 06:11, romeo wrote:
>>> All right, is working, access in browser to http://localhost:3000 and
>>> the map is there.
>>>
>>> I have a local openstreetmap of my country local installed ?
>>>
>>> Disconecting the pc from internet and my map is not working anymore !
>>>
>>> What i am wrong ?
>>>
>>> What i must install to have a full local map installed ?
>> You have installed a copy of the OSM web site and data base, but not a
>> copy of the OSM tile serving tool chain. When you activate the "data
>> layer" on your local web site you will see the data from *your* data
>> base, but if you look at the tiles you see tiles created by
>> OpenStreetMap.
>>
>> You need to set up your own tile server, and a replication mechanism
>> between your own OSM database (which you already have) and that tile
>> server.
>>
>> You will end up with two databases that contain the same data, but in
>> different formats - the OSM backend database which you already have, and
>> the tile server database which is created by osm2pgsql and contains data
>> prepared for rendering.
>>
>> Bye
>> Frederik
>>
>
>
> _______________________________________________
> rails-dev mailing list
> rails-dev at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/rails-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190116/f9e9b480/attachment.html>
More information about the rails-dev
mailing list