-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
I have added a panBy event on some items on the map:
//get a click's lat and lng
var markerLocation = new L.LatLng(e.latlng.lat, e.latlng.lng);
//get map's half size
var msx = map.getSize().x / 2;
var msy = map.getSize().y / 2;
//pan the map to centre the click's latlng (based on point values) minus - 450px
map.panBy([map.latLngToContainerPoint(markerLocation).x - msx , map.latLngToContainerPoint(markerLocation).y - msy - 450 ]);
Now, when the pan effect occurs, after that all the connected items (e.g. markers, their popups) are losing their "crispiness" and become blurry. For example the text inside a popup are getting more difficult to be read.
Any ideas?