<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,
<br>
</p>
<p>from here:</p>
<p><a class="moz-txt-link-freetext"
href="https://switch2osm.org/manually-building-a-tile-server-18-04-lts/">https://switch2osm.org/manually-building-a-tile-server-18-04-lts/</a>
<br>
<br>
<a class="moz-txt-link-freetext"
href="http://nominatim.org/release-docs/latest/appendix/Install-on-Ubuntu-18/">http://nominatim.org/release-docs/latest/appendix/Install-on-Ubuntu-18/</a>
<br>
<br>
<a class="moz-txt-link-freetext"
href="https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md">https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md</a>
<br>
<br>
installed rails server+nominatim+tiles server<br>
and here:
<br>
<br>
<a class="moz-txt-link-freetext"
href="https://help.openstreetmap.org/questions/36946/set-railsport-and-josm-to-use-local-tile-server">https://help.openstreetmap.org/questions/36946/set-railsport-and-josm-to-use-local-tile-server</a>
<br>
<br>
1. <a class="moz-txt-link-freetext" href="http://locahost/">http://locahost/</a>...
access from local pc
<br>
<br>
2. <a class="moz-txt-link-freetext" href="http://">http://</a><your_pc_ip>/...
access from local network
<br>
<br>
tested '1' with pc offline and working
<br>
</p>
<br>
<div class="moz-cite-prefix">On 13.01.2019 18:28, romeo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1c11157d-2c35-8241-d4d4-e30c8587d4d3@perosoft.org">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p>installed ok: rails server with opentreetmap OSM, nominatim
local, renderd server openstreetmap <br>
<br>
in browser: <br>
<br>
<a class="moz-txt-link-freetext" href="http://localhost:3000"
moz-do-not-send="true">http://localhost:3000</a> is ok, show
the map online <br>
<br>
<a class="moz-txt-link-freetext"
href="http://localhost/hot/0/0/0.png" moz-do-not-send="true">http://localhost/hot/0/0/0.png</a>
is ok show world map tile offline <br>
<br>
<a class="moz-txt-link-freetext"
href="http://localhost/nominatim" moz-do-not-send="true">http://localhost/nominatim</a>
show dialog box search and blank window map, offline <br>
<br>
in openstreetmap-website/application.yml changed <br>
<br>
# nominatim_url: <a class="moz-txt-link-rfc2396E"
href="https://nominatim.openstreetmap.org/"
moz-do-not-send="true">"https://nominatim.openstreetmap.org/"</a>
<br>
nominatim_url: <a class="moz-txt-link-rfc2396E"
href="http://localhost/nominatim/" moz-do-not-send="true">"http://localhost/nominatim/"</a>
<br>
<br>
Now <br>
<br>
rails server + nominatim + renderd server working online <br>
<br>
offline <br>
<br>
rails server + nominatim + renderd server working but showing
map from browser cache <br>
<br>
if i clear cache have no map on screen, but rails server +
nominatim still working <br>
<br>
i believe must changing some js code, found this: <br>
<br>
openstreetmap/vendor/assets/openlayers/OpenStreetMap.js <br>
<br>
<a class="moz-txt-link-rfc2396E"
href="https://a.tile.openstreetmap.org/$%7Bz%7D/$%7Bx%7D/$%7By%7D.png"
moz-do-not-send="true">"https://a.tile.openstreetmap.org/${z}/${x}/${y}.png"</a>,
<br>
<a class="moz-txt-link-rfc2396E"
href="https://b.tile.openstreetmap.org/$%7Bz%7D/$%7Bx%7D/$%7By%7D.png"
moz-do-not-send="true">"https://b.tile.openstreetmap.org/${z}/${x}/${y}.png"</a>,
<br>
<a class="moz-txt-link-rfc2396E"
href="https://c.tile.openstreetmap.org/$%7Bz%7D/$%7Bx%7D/$%7By%7D.png"
moz-do-not-send="true">"https://c.tile.openstreetmap.org/${z}/${x}/${y}.png"</a>
<br>
changed to <br>
<br>
<a class="moz-txt-link-rfc2396E"
href="http://a.tile.localhost/hot/$%7Bz%7D/$%7Bx%7D/$%7By%7D.png"
moz-do-not-send="true">"http://a.tile.localhost/hot/${z}/${x}/${y}.png"</a>,
<br>
<a class="moz-txt-link-rfc2396E"
href="http://b.tile.localhost/hot/$%7Bz%7D/$%7Bx%7D/$%7By%7D.png"
moz-do-not-send="true">"http://b.tile.localhost/hot/${z}/${x}/${y}.png"</a>,
<br>
<a class="moz-txt-link-rfc2396E"
href="http://c.tile.localhost/hot/$%7Bz%7D/$%7Bx%7D/$%7By%7D.png"
moz-do-not-send="true">"http://c.tile.localhost/hot/${z}/${x}/${y}.png"</a>
<br>
<br>
with no luck, still no map in browser <br>
<br>
i must redirect rails server to local tile server renderd, but i
don't now how <br>
<br>
some help ? <br>
<br>
<br>
<br>
<br>
On 13.01.2019 14:30, Frederik Ramm wrote: <br>
</p>
<blockquote type="cite" style="color: #000000;">Hi, <br>
<br>
On 1/13/19 06:11, romeo wrote: <br>
<blockquote type="cite" style="color: #000000;">All right, is
working, access in browser to <a
class="moz-txt-link-freetext" href="http://localhost:3000"
moz-do-not-send="true">http://localhost:3000</a> and <br>
the map is there. <br>
<br>
I have a local openstreetmap of my country local installed ? <br>
<br>
Disconecting the pc from internet and my map is not working
anymore ! <br>
<br>
What i am wrong ? <br>
<br>
What i must install to have a full local map installed ? <br>
</blockquote>
You have installed a copy of the OSM web site and data base, but
not a <br>
copy of the OSM tile serving tool chain. When you activate the
"data <br>
layer" on your local web site you will see the data from <b
class="moz-txt-star"><span class="moz-txt-tag">*</span>your<span
class="moz-txt-tag">*</span></b> data <br>
base, but if you look at the tiles you see tiles created by
OpenStreetMap. <br>
<br>
You need to set up your own tile server, and a replication
mechanism <br>
between your own OSM database (which you already have) and that
tile server. <br>
<br>
You will end up with two databases that contain the same data,
but in <br>
different formats - the OSM backend database which you already
have, and <br>
the tile server database which is created by osm2pgsql and
contains data <br>
prepared for rendering. <br>
<br>
Bye <br>
Frederik <br>
<br>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rails-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rails-dev@openstreetmap.org">rails-dev@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/rails-dev">https://lists.openstreetmap.org/listinfo/rails-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>