On 07/04/2009 14:22, Martín Ernesto Barreyro wrote:
> Hello,
> 
> I'm having a little problem with the scaling of my map. The thing is that
> the max scale its of about 1:10, and the min scale near 1:0. Now the scale
> is being rounded to 10 multipliers, so it goes to 1:10 or 1:0. What I need
> its that at least the scale can be set to 1:1, 1:2, 1:3 ... 1:10, and if it
> could use decimals it would be even better.
> 
> If is necesary any information about my configuration, please ask.
> 
> Thanks!

the function for the rounding is in map.php

function pmap_returnGeoScale()
{
    return number_format(round($this->geo_scale, -1), 0, '', '');
}

you need to modify this (see PHP docs) since there is no configuration 
setting for this behaviour ("maps" in the normal sense of the word 
usually do not range between scales 1:1 and 1:10, this is more a domain 
of CAD drawings).

armin

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to