[OpenLayers-Users] Drag performance tweaker...

Chris Adams chris at genieknows.com
Mon Dec 15 13:02:45 EST 2008


In Handler/Drag.js

line 70-78:

    /**
     * Property: interval
     * {Integer} In order to increase performance, an interval (in
     *     milliseconds) can be set to reduce the number of drag events
     *     called. If set, a new drag event will not be set until the
     *     interval has passed.
     *     Defaults to 0, meaning no interval.
     */
    interval: 0,

line 212-214:

            if (this.interval > 0) {
                this.timeoutId = 
setTimeout(OpenLayers.Function.bind(this.removeTimeout, this), 
this.interval);
            }

Is this feature fully implemented? It does not appear that way to me, 
but I thought I would check.

Thanks,

- Chris



More information about the Users mailing list