Hi, I have installed OSM server on Ubuntu. Now I want to use it in my applications. I want to use my local OSM server for map and not Openstreet map server. How do I serve the tiles? Any sample HTML code? I have tried code where it is referring to Openstreet map server on openstreetmap.org. How do I change it to refer to localhost server? asked 09 Oct '11, 11:49 Reshma Maner Jonas_ |
To get your own map tile server, you want OSM in a Box - it does all the hard integration work for you :
permanent link
This answer is marked "community wiki".
answered 17 Nov '11, 15:35 Jean_Marc Li... |
You can start with the OpenLayers simple example. Note the section for "Other tile sets". You have to add this code to the layer definition section, instead of the two lines for Mapnik:
Just change the URL to the directory where your tiles are, and the zoom levels to how many you have. Then open it in your browser, and it should be showing your local tiles. answered 09 Oct '11, 12:45 Vclaw hi, Thanks for the input. I have tried it with a single layer world tile. It is working. Now, I want to make india map tiles. Pls tell me how can I do it? I want to use India map from my server, not thro Openstreetmap.org server
(11 Oct '11, 08:08)
Reshma Maner
1
Hi Reshma, when you have a chain of questions that go deeper in detail with each answer, you should better ask at forum.osm.org or one of the mailing lists ... maybe there you can get detailed answers beyond any FAQ like this site is.
(11 Oct '11, 16:38)
stephan75
|