[Chameleon] Rounding scale value

Gambin Dejan Dejan.Gambin at pula.hr
Tue Mar 28 03:35:52 EST 2006


Hi,

I am using Scale widget to display the scale. It is ok initially but
sometimes I get non-rounded value shown in the inputbox (like xxx.yyy)
after zooming. I am using JSAPI. Do I have to round it somewhere in
"{$this->mszHTMLForm}.SCALE.value = goCWCJSAPI.oMap.scale;"? I suppose I
have to convert it to number first and then use riund function (or work
with scale value as string)...

thanks

dejan



More information about the Chameleon mailing list