On Sat, 2009-03-21 at 11:16 +0530, Kenneth Gonsalves wrote:
> hi
> 
> The wiki page for this says:
> 
> Download the planet file from planet.openstreetmap.org 
>  Import into a PostGIS database using osm2pgsql 
> Set up mapnik and test using osm.xml and the generate_image.py 
>  When everything works, use generate_tiles.py to create 1000s of tiles in a 
> special hierarchy of folders 
>  Copy/move tiles into your webserver's document root. 
>  Change the OpenLayers instance to use your own tileserver instead of the 
> main 
> one
> 
> can anyone give me an example of how to change the OpenLayers instance to 
> point to the tiles generated by generate_tiles.py?

First get a web page running with the OpenStreetMap.js [1][2]
Then change the implementation OpenLayers.Layer.OSM.Mapnik to point the
URLs are your own server. Or copy/paste the code to create your own
layer.

        Jon

[1] http://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example
[2] 
http://trac.openstreetmap.org/browser/sites/rails_port/public/openlayers/OpenStreetMap.js



_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to