On Fri, 2009-07-10 at 11:38 -0700, Francis Dupont wrote:
> Hello!
> 
> I have a postgis db containing the openstreetmap for Canada only.
> What I
> want to do is setup mapnik, openlayer and tilecache to have my own
> map.  I'm
> new to mapnik, openlayer, OSM and I need help.
> 
> What I want is a web map of the Canada only so I have a limited extent
> (bbox
> = -141.0, 41.0, -52.0, 84.0).
> 
> I'm abble to render tiles with generate_tiles.py and show them in
> openlayer
> in static mode.  I couldn't get tilecache to work so far but I'll keep
> that
> for dessert.  My problem is that the tile (z, x, y) -> (0,0,0)
> correspond to
> a scale of the world.  I want mapnik to render zoom level 0 tiles to
> the max
> extent I specified earlier.
> 
> For example, I would like to have 4 tiles at zoom level 0 for the
> Canada and
> use openlayer to show those tiles.  I know I must setup scales in
> openlayer
> based on the scale of mapnik but how do you get the value of those
> scales?
> 
> Any help on that problem will be appreciated!


I think the best answer is to leave the tile zoom levels alone and to
instead change the openlayers configuration to restrict the bbox & zoom
range that you can select. Some of these links may help you:
http://trac.openlayers.org/wiki/SettingZoomLevels
http://openlayers.org/dev/examples/restricted-extent.html

If you try to go down the route you suggest and change the lanlon to
tile numbering then you would need to change lots of code to make it
work.

        Jon


_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to