<story><title>Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps</title><url>https://github.com/markuman/sms</url></story><parent_chain><item><author>xrd</author><text>Does anyone know if there is a way to host just a few of the tiles in a static way? For example, if I wanted to build a web page which just shows a map at zoom level 6 for a lat&amp;#x2F;lng point, and then go to zoom level 13. That would require a tiny subset of tiles; is there a simple way to add the tiles plus the JS code in a static way so no external downloads were necessary?</text></item></parent_chain><comment><author>simonw</author><text>Yes, that’s pretty easy. I did it for Half Moon Bay, California here: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;simonw.github.io&amp;#x2F;hmb-map&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;simonw.github.io&amp;#x2F;hmb-map&amp;#x2F;&lt;/a&gt;&lt;p&gt;Code here: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;simonw&amp;#x2F;hmb-map&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;simonw&amp;#x2F;hmb-map&lt;/a&gt;&lt;p&gt;TIL here: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;til.simonwillison.net&amp;#x2F;gis&amp;#x2F;pmtiles&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;til.simonwillison.net&amp;#x2F;gis&amp;#x2F;pmtiles&lt;/a&gt;</text></comment>
<story><title>Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps</title><url>https://github.com/markuman/sms</url></story><parent_chain><item><author>xrd</author><text>Does anyone know if there is a way to host just a few of the tiles in a static way? For example, if I wanted to build a web page which just shows a map at zoom level 6 for a lat&amp;#x2F;lng point, and then go to zoom level 13. That would require a tiny subset of tiles; is there a simple way to add the tiles plus the JS code in a static way so no external downloads were necessary?</text></item></parent_chain><comment><author>l72</author><text>I&amp;#x27;ve used maptiler to do this. You can give it a boundary and zoom levels, along with a theme, and generate prerendered tiles that you can then server just using http. This has worked well with leaflet.</text></comment>