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

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
accept rate: 0%

edited 11 Oct '11, 13:08

Jonas_'s gravatar image



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.


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

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 script provided by mapnik, see this documentation

permanent link

answered 11 Oct '11, 08:38

NicolasDumoulin's gravatar image

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

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

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

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 11 Oct '11, 08:10

question was seen: 6,300 times

last updated: 11 Oct '11, 13:08

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