CartoDB / Leaflet.CanvasLayer

full screen canvas layer for Leaflet
118 stars 35 forks source link

Map zoom causes canvas offset #7

Open MattFerraro opened 10 years ago

MattFerraro commented 10 years ago

Right in the example: http://cartodb.github.io/Leaflet.CanvasLayer/example.html

At first the red dot is centered just south of Ghana. If you zoom in or out on the map, the red dot temporarily transports itself to a different location on the screen that varies according to zoom level, but is always south and west of the original location.

As the animation of the red continues, it fixes itself but the glitch to a new location is definitely noticeable during the zoom. Expected behavior is for the red dot to be centered below Ghana even in between zoom levels.