coopcycle-web icon indicating copy to clipboard operation
coopcycle-web copied to clipboard

Smaller font size since last Leaflet update

Open alexsegura opened this issue 3 years ago • 1 comments

The markers/popups are now smaller.

This seems to be due to changes in Leaflet 1.8

Allow fonts to respect users' browser settings by making the font-size relative to the map container. (You can change the font size on leaflet-container to adjust it if needed.) (https://github.com/Leaflet/Leaflet/pull/7800 by @Chandu-4444)

Capture d’écran 2022-06-27 à 14 14 09

alexsegura avatar Jun 27 '22 12:06 alexsegura

We are using BeautifyMarker, but maybe we would need to use another, more up-to-date custom marker library?

Anyway, the changes need to be done here:

https://github.com/coopcycle/coopcycle-web/blob/28be69c966988d4aa24d0cfa0889d7a260e0e259/js/app/MapHelper.js#L45-L53

alexsegura avatar Jul 22 '22 13:07 alexsegura