This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to set zoom levels while generating tiles?

0

I want to generate map tiles over India. How to set zoom levels while generating tiles?

Also, I am working on basic example. Following link is displayed on htmp file "Data CC-By-SA by OpenStreetMap"

I want to remove it since I am using my own tiles. How do I remove it?

asked 11 Oct '11, 08:10

Reshma%20Maner's gravatar image

Reshma Maner
235303136
accept rate: 0%

edited 11 Oct '11, 13:08

Jonas_'s gravatar image

Jonas_
662152233

2

I don't think you should remove the CC-BY-SA link since you are using OSM data, aren't you?

(11 Oct '11, 08:16) Jonas_

Ok. No problem. How do I generate India map tiles will all detailed zoom levels.

Reshma

(11 Oct '11, 08:37) Reshma Maner

One Answer:

0

As Jonas said it, you should keep the legal mention of OSM paternity and license. Although, you're rendering your own tiles, you're doing that with OSM data. I suppose you're using OpenLayers, and for your information, you can modify the "attribution" attribute in the Layer constructor.

For generating tiles, you can use the generate_tiles.py script provided by mapnik, see this documentation

answered 11 Oct '11, 08:38

NicolasDumoulin's gravatar image

NicolasDumoulin
3.3k42256
accept rate: 13%

edited 11 Oct '11, 09:45

I have not added any specific attribution in my code. Is this the default attribution?

(11 Oct '11, 09:05) Reshma Maner
(11 Oct '11, 09:40) NicolasDumoulin

how do I change it? I tried it by adding follwoing line, but not working

var newLayer = new OpenLayers.Layer.OSM("New Layer", "world_tiles/${z}/${x}/${y}.png", {numZoomLevels: 10},{'attribution': 'Test Map'});

(11 Oct '11, 10:24) Reshma Maner

try something like this: {numZoomLevels: 10, 'attribution': 'Test Map'}

(11 Oct '11, 10:26) NicolasDumoulin

it is working, Thanks.

How do I generate india map tiles for all levels? Basiacally, I want detailed india map to be used from my server

(11 Oct '11, 10:32) Reshma Maner
4

This web site is a simple Q&A site, not a forum neither a good place to explain how to set-up your own tile server.

(11 Oct '11, 11:11) Pieren

I understand. I have already set up my own tile server. Just want some info on India map tiles.

(11 Oct '11, 11:17) Reshma Maner
showing 5 of 7 show 2 more comments

Source code available on GitHub .