CloudMade/Leaflet — Issue #479: Question about a function
Author: dicoy
Created: 2012-02-14 02:28:10+00:00
State: open

I've been trying to make my tile server work with proj4leaflet.
What happened is that the map loads perfecty, but it breaks as soon as I drag it.

I tried to trace the issue and ended up here, inside leaflet.js
I'm curious about this function, it seems to modify the values for this._draggable._newPos, but it just changes the value for x and does nothing to y.
Also the value is assigns to x is huge

_onPreDrag:function(){
var a=this._map,
b=a.options.scale(a.getZoom()),
c=Math.round(b/2),
a=this._initialWorldOffset.x,
d=this._draggable._newPos.x,
e=(d-c+a)%b+c-a,
b=(d+c+a)%b-c-a;
this._draggable._newPos.x=Math.abs(e+a)