NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi,

i'm looking for a way to change the maximal zoom in renderd.

Actually, it only renders tiles with a maximal zoom set to 18, and i would like to render some tiles with a 19 or 20 zoom.

Do you know how i can perform this? Thanks.

asked 13 Sep '12, 14:00

Lght's gravatar image

Lght
36115
accept rate: 0%

edited 17 Sep '12, 15:46

1

You'll probably get more response on the osm-dev list or #osm-dev in IRC. A quick search such as

"zoom 21" site:lists.openstreetmap.org/pipermail/dev/

finds a few old list messages (obviously try other numbers > 18 as well as 21).

(13 Sep '12, 23:57) SomeoneElse ♦

Thanks.

I've searched in those pages, changing few words in the hope of finding a solution but i'm still blocked with that.

I'm going to ask my question in #osm-dev.

(17 Sep '12, 08:38) Lght

MAX_ZOOM is not a configurable parameter, but has to be changed in config.h before compiling renderd.

permanent link

answered 17 Sep '12, 19:34

mmehl's gravatar image

mmehl
56521118
accept rate: 15%

Thanks for your answer.

The first thing i've done when i wanted to change the max rendering zoom was to check for a MAX ZOOM macro in headers file.

I changed it to 19 or 20, but even after the compilation, i'm not able to render a image linked by http://localhost/osm_tiles2/19/266543/176364.png (it 404, and it was generated by OpenLayers), whereas this work http://localhost/osm_tiles2/18/133271/88182.png.

The daemon i started was the one i just compiled. Maybe you have some ideas about that ?

Edit: i forgot to restart my apache server the first time. Thanks.

(18 Sep '12, 09:02) Lght

For zoom levels up to 20, I added a user wiki page describing the changes that I needed to make to render, update and display maps.

permanent link

answered 02 Jul '16, 11:11

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

Hi,

I found a solution just passing a few parameters to OSM layer when it is created.

OSMLayerOptions = {
        serverResolutions:  
        [
                156543.03390625, 
                78271.516953125, 
                39135.7584765625, 
                19567.87923828125, 
                9783.939619140625, 
                4891.9698095703125, 
                2445.9849047851562, 
                1222.9924523925781, 
                611.4962261962891, 
                305.74811309814453, 
                152.87405654907226, 
                76.43702827453613, 
                38.218514137268066, 
                19.109257068634033, 
                9.554628534317017, 
                4.777314267158508, 
                2.388657133579254, 
                1.194328566789627, 
                0.5971642833948135              
        ],
        resolutions:    
        [
                    156543.03390625, 
                    78271.516953125, 
                    39135.7584765625, 
                    19567.87923828125, 
                    9783.939619140625, 
                    4891.9698095703125, 
                    2445.9849047851562, 
                    1222.9924523925781, 
                    611.4962261962891, 
                    305.74811309814453, 
                    152.87405654907226, 
                    76.43702827453613, 
                    38.218514137268066, 
                    19.109257068634033, 
                    9.554628534317017, 
                    4.777314267158508, 
                    2.388657133579254, 
                    1.194328566789627, 
                    0.5971642833948135,
                    0.29858214169740677,
                    0.14929107084870338
            ],
        numZoomLevels: 21
};
OSMLayer = new OpenLayers.Layer.OSM(null, null, OSMLayerOptions);
permanent link

answered 01 Oct '12, 08:53

bcn's gravatar image

bcn
111
accept rate: 0%

-1

As I understand it, the zoom levels are each rendered and stored separably so although there are ways to magnify the screen image,with Ctrl + in windows for example,you are probably limited by the system to level 18. see http://wiki.openstreetmap.org/wiki/Zoom_levels

permanent link

answered 13 Sep '12, 16:44

andy%20mackey's gravatar image

andy mackey
13.2k87143285
accept rate: 4%

edited 13 Sep '12, 16:48

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×341
×123
×107
×105
×99

question asked: 13 Sep '12, 14:00

question was seen: 15,859 times

last updated: 02 Jul '16, 11:11

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum