[OpenLayers-Users] Increase slidefactor on PanPanel

Hugo hfpmartins at gmail.com
Sat Apr 18 13:20:13 EDT 2009


Hello users,

>From Pan.js i can see a slideFactor of 50. Shouldn't i be able to call this
option inside OpenLayers.Control.PanPanel ???

I have the following code:
var options = {
            projection: mercator,
            displayProjection: wgs,
            units: 'm',
            controls: [new OpenLayers.Control.PanPanel({slideFactor:200})],
            numZoomLevels: 20,
            maxExtent: mercatorbounds,
            restrictedExtent: mercatorbounds
        };

I suppose this should work here, right???
Obviously if i change the value in the pan.js everything goes right but i
would rather prefer not changing this value here and change it just in the
app's code. Is this possible???

Many thanks,

Hugo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090418/0387b35d/attachment.html


More information about the Users mailing list