[mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI >5.0?

Perry Nacionales naci0002 at umn.edu
Wed Nov 12 15:10:42 EST 2008


John,

This is what you're looking for... 
http://mapserver.gis.umn.edu/development/rfc/ms-rfc-31/

Good luck!

-Perry

John Maurer wrote:
> Dear MapServer Users,
> Prior to MapServer 5.0, I could set the map scalebar size and 
> intervals using CGI variables named "map_scalebar_size" and 
> "map_scalebar_intervals". After upgrading to 5.2.0, however, these 
> variables are no longer recognized; I get an error saying 
> "loadScalebar(): Unknown identifier". Is it true that we can no longer 
> reference map settings in this fashion? When I change these variables 
> to "map_scalebar=size+value+intervals+value" it works, but this no 
> longer fills in my template variables [map_scalebar_size] and 
> [map_scalebar_intervals]. If I try using a template variable with 
> [map_scalebar] instead, the value (e.g. 
> "size+width+height+intervals+value") doesn't seem to be interpreted by 
> MapServer since the scalebar settings never get subsequently modified. 
> What am I doing wrong?  Thanks for any insights!
> Cheers,
>


More information about the mapserver-users mailing list