[mapserver-dev] Setting scaledenom on the fly

Tamas Szekeres szekerest at gmail.com
Thu Oct 27 15:55:04 EDT 2011


Fabrizio,

You might want to use map.zoomScale. Something like:

map.zoomScale(newscale, center, map.width, map.height, map.extent, null);

Best regards,

Tamas




2011/10/26 GMail <itacasoft at gmail.com>

> Hello everybody,
> I'm using MapScript-C#. I'm trying to set the scaledenom of the mapobj to a
> desired scale in Mercator projection, but it does not seem to work well (I
> got always the same image). Is there any sample code around?
> Thanks
>
> Fabrizio
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20111027/7810d7af/attachment.html


More information about the mapserver-dev mailing list