I've configured an OSM map server with mod_tile/renderd/postgres to display a basic map and everything works fine until I try to zoom into level 18 or more. At any zoom level less than 18, I can see renderd -f accepting connections and generating new map tiles. However, when I zoom into level 18 or more, I just get 404's in my weblogs and renderd service is completely quiet.

Also this only seems to be a problem through the browser. When I use render_list to pregenerate tiles, it works at every zoom level. And even when I point the browser to the area of the map that's been pregenerated at zoom 18+ the tiles don't display and again I get a bunch of 404's. I've used both openlayers3 and leaflet libraries and the problem is the same. Here's the relevant configs




<!doctype html>
<html lang="en">
    <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" type="text/css">
    <link rel="stylesheet" href="leaflet/L.Control.Zoomslider.css" type="text/css">
      html, body, .map {
        height: 100%;
        width: 100%;
    <div id="map" class="map"></div>
    <script src="leaflet/leaflet.js" type="text/javascript"></script>
    <script src="leaflet/L.Control.Zoomslider.js" type="text/javascript"></script>
    <script type="text/javascript">
      var map = L.map('map', {zoomControl: true}).setView([41.505, -100.183], 4);

      L.tileLayer('http://server/osm_tiles2/{z}/{x}/{y}.png', {
        minZoom: 4,
        maxZoom: 20,
        id: 'mapbox.streets'

      map.addControl(new L.Control.Zoomslider());

The openlayers3 html is basically the same. Anybody seen this before or can assist?


1 Answer 1


As the comment only talk about openlayers3. I think that it is OK to answer the leaflet one, it is similar to openlayers3 case, by providing maxNativeZoom , you should able to load map tiles on that zoom level:

  L.tileLayer('http://server/osm_tiles2/{z}/{x}/{y}.png', {
    minZoom: 4,
    maxZoom: 20,

    maxNativeZoom: 20,

    id: 'mapbox.streets'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.