Skip to content

Pan creates blurriness on map's connected items #1085

@Diolor

Description

@Diolor

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions