Hi Anders,
the mapObject.scale is deprecated, use mapObject.scaledenom. It is the denominator of the scale ratio: if the scale is 1:100000, the mapObject.scale(denom) is 100000. This is a read-only property, it cannot be set programmatically because it is set by the mapObject.drawMap() function, but you can use the mapObject.zoomscale() function. Take a look here: http://mapserver.org/mapscript/php/index.html#mapobj-class.

Zoomlevel I don't know, perhaps you refer to zoomfactor, that is a parameter of the mapObject.zoompoint() function.

hth
bye ...................pg


--
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E



andersr ha scritto:
Hi,

Does anybody know how to set the scale on a mapobject in mapscript?

And what is the difference between scale and zoomlevel?

Regards

Anders

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to