Mark

]]>I will try it out.

Thanks for your help !!!

BalRam

]]> `MyMap.scale_denominator()`

to get the current scale denominator. This will assume a 0.00028m pixel size, so you will have to scale it to your PPI value for printable maps. Then you can calculate how far one mile and one kilometer is for your map.

I’m not sure of the relationship between zoom factor and scale in Mapnik, sorry. Try asking on their mailing list.

]]>Please do provide me code snippet for it too.

Thanks !!!

]]>May be you remembered me. You had replied my query on mapnik forum.

Thanks for it again.

Actually, I have gone throgh your way of zoom_to_box() and called zoom() function. Now its working fine.

Now, I am facing problem in measure scale in terms of kilometer or meter with current zoom level.

i.e. if I am at specific zoom level then what is scale of my map in term of kilometer; so that I can show scale factor in my map.

Getting more specific, I have to speficy zoom() in range of values 2km to 16000km and map to mapnik zoom() function which takes value in 0.1 to 1.0.

Could you please help me out of this?

Please give me some fruitful information.

Thanks!!

BalRam

]]>