<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <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">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">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">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/">"https://nominatim.openstreetmap.org/"</a>
      <br>
        nominatim_url: <a class="moz-txt-link-rfc2396E"
        href="http://localhost/nominatim/">"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">"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">"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">"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">"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">"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">"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">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>
  </body>
</html>