<div dir="ltr">Carlos,<div>Check out Rob Chohan blog, <a href="http://www.roblabs.com/osm-random-walk/">http://www.roblabs.com/osm-random-walk/</a>, that he presented to day at SotM US in Boulder. It might be enough to get you started. </div><div><br></div><div>Clifford</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 22, 2017 at 11:47 AM, Carlos Cámara <span dir="ltr"><<a href="mailto:carlos.camara@gmail.com" target="_blank">carlos.camara@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I would like to create a custom map for online use that loads OSM
data but displays it in different ways as the standard, cyclemap,
transport... layers.<br><br></div><div><p><strong>Some background: What I think I know so far</strong></p>
<p>I have made some research and, although I have to admit that I am
still quite confused, I have come to the conclusion that the process
outline may be the one that follows (with many variations):</p>
<ol><li><strong>Get the data.</strong> AFAIK, data can be downloaded either partially or globally from several sources, like <a href="https://wiki.openstreetmap.org/wiki/Planet.osm" rel="nofollow noreferrer" target="_blank">Planet OSM</a> or <a href="https://openmaptiles.com/downloads/planet/" rel="nofollow noreferrer" target="_blank">OpenMaptiles</a>.
If I'm not wrong, data can be accessed online by querying it or using
services like Mapbox (see below) (correct me if I'm wrong).</li><li><strong>Style the map.</strong> Our data has to be styled according
to our needs. Again, if I'm not wrong, there are to different (not sure
if they are excluding or not) ways to do it: either using <a href="https://wiki.openstreetmap.org/wiki/Mapnik" rel="nofollow noreferrer" target="_blank">Mapnik</a> or <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/" rel="nofollow noreferrer" target="_blank">Mapbox GL</a>
(more on this below). In case that we opt for Mapnik we should create a
Mapnik style (a XML file that AFAIK has to be manually edited and seems
to be quite cumbersome for complex settings) and, in case we opt for
mapbox we can use either <a href="https://tilemill-project.github.io/tilemill/" rel="nofollow noreferrer" target="_blank">Tilemill</a> or the FLOSS editor <a href="https://maputnik.github.io/" rel="nofollow noreferrer" target="_blank">Maputnik</a>.</li><li><strong>Render the map</strong> in order to convert the data and
styles into an appealing map. This map can either be a raster map (which
will generate lots of tiles and will require the next step: tileserver)
or a vector map (which don't understand how it works other than inside
mapbox). Don't know how to do this. I assume that in case that we opt
for mapnik we need to have it installed in our server and execute a
command. In case of Mapbox I assume we need an account on their service. I have also found <a href="https://wiki.openstreetmap.org/wiki/Rendering" rel="nofollow noreferrer" target="_blank">this exhaustive list of rendering options on OSM's wiki</a>, but haven't assimilated all that information yet.</li><li><strong>Serving tiles:</strong> the myriad of raster tiles that have
been generated in the previous step need to publicly available. In
order to achieve that a tileserver is needed. AFAIK, there are several
options here, being <a href="https://wiki.openstreetmap.org/wiki/Mapnik" rel="nofollow noreferrer" target="_blank">Mapnik</a>, <a href="http://t-rex.tileserver.ch/" rel="nofollow noreferrer" target="_blank">T-rex</a> or <a href="https://openmaptiles.org" rel="nofollow noreferrer" target="_blank">OpenMapTiles</a>
some of them. All of them require a custom server in which they need to
be installed. I'm assuming that this server requires a lot of RAM, CPU
and Disk space, but I don't have an idea of how much is "a lot" (I
assume it will vary "a lot" depending on the cover area and zoom level,
but do not have the slight idea not even for the whole world at city
level zoom or just one city area). </li></ol>
<p><strong>Conclusion:</strong></p>
<p>Provided that everything I wrote above is true, I see three excluding options:</p>
<ol><li><strong>Mapnik</strong> covers steps #2-#4 and needs a custom server to be installed
at and to host all the data (both, OSM data and generated tiles).</li><li><strong>OpenMapTiles</strong> cover steps #1-#4. Needs a custom server to be
installed at and to host all the data. Apparently seems easier to
setup and run that Mapnik.</li><li><strong>Mapbox</strong> covers steps #1-#3, since #4 is not needed, being that are
vector layers. Does not require any webserver but requires a paid
account. Don't know if it means that using Mapbox GL you are locked in Mapbox plattform.</li></ol>
<p>Don't know how does t-rex fit on this equation.</p>
<p>Does that make sense? Do you have some recommendations in how to achieve a custom map?<br></p>
<p>At this point I feel quite confused, since despite things start to
make sense to me, I have the feeling that I am missing some pieces of
this complex puzzle. Not to mention that I'm not sure if I am right,
though.</p><br></div><div>Regards,<br></div><div><br><br clear="all"><div><div class="m_3668872155441023329gmail_signature">Carlos Cámara<br><a href="http://carloscamara.es" target="_blank">http://carloscamara.es</a><br></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
talk mailing list<br>
<a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>@osm_seattle<br></div><div><a href="http://osm_seattle.snowandsnow.us" target="_blank">osm_seattle.snowandsnow.us</a></div><div>OpenStreetMap: Maps with a human touch</div></div></div>
</div>