Giter VIP home page Giter VIP logo

Comments (4)

Overv avatar Overv commented on May 17, 2024

It looks like this requires a modification to the map style: https://gis.stackexchange.com/a/190009/34626

In this case it's a matter of changing the scale on this line to 2:

https://github.com/gravitystorm/openstreetmap-carto/blob/d330a987c7e2a814fc2997dad495270a0c079bac/project.mml#L1

You will subsequently get retina tiles on the normal url of /tile/18/134637/86148.png.

from openstreetmap-tile-server.

MaRaSu avatar MaRaSu commented on May 17, 2024

No need to modify map style and you can serve both normal & high res (retina) tiles at the same time. What you need to do is to edit renderd.conf and add an entry for high res tiles. Example below for high res section that I added:

[map_retina]
URI=/tiles@2x/
TILEDIR=/var/lib/mod_tile
XML=/home/renderer/src/map/mapnik.xml
HOST=localhost
MAXZOOM=19
SCALE=2.0
TILESIZE=512

I did not figure out how you could serve high res tiles with the usual ...{y}@2x.png file naming convention but having a distinct URI path for high res works as well for most cases.

from openstreetmap-tile-server.

gsontheimer avatar gsontheimer commented on May 17, 2024

I also would like to use retina tiles - but as a beginner I do not understand where to edit this renderd.conf file.

Can you please give me a more detailed instruction?

from openstreetmap-tile-server.

Istador avatar Istador commented on May 17, 2024

It is located at: /usr/local/etc/renderd.conf

sudo -u renderer renderd -f -c /usr/local/etc/renderd.conf &

You should be able to volume mount your own modified file onto that path or edit it with a Dockerfile. See #154 for more details.

from openstreetmap-tile-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.