Open hupe13 opened 1 year ago
Hello Bozdoz,
see support forum
sometimes with [leaflet-map fitbounds] - depending on screen size and zoom - the markers appear too much at the edge. Can you please add a small pad();)?
[leaflet-map fitbounds]
https://github.com/bozdoz/wp-plugin-leaflet-map/blob/39019ce82a5227915adb556b61035232a65f3a5a/scripts/construct-leaflet-map.js#L157
https://github.com/bozdoz/wp-plugin-leaflet-map/blob/39019ce82a5227915adb556b61035232a65f3a5a/scripts/construct-leaflet-map.js#L166
to
map.fitBounds(mg.getBounds().pad(0.1));
Thank you very much.
I thought about including this issue in PR, but I'm not sure if that's a good idea for everyone. Maybe you should introduce an option.
Hello Bozdoz,
see support forum
sometimes with
[leaflet-map fitbounds]
- depending on screen size and zoom - the markers appear too much at the edge. Can you please add a small pad();)?https://github.com/bozdoz/wp-plugin-leaflet-map/blob/39019ce82a5227915adb556b61035232a65f3a5a/scripts/construct-leaflet-map.js#L157
https://github.com/bozdoz/wp-plugin-leaflet-map/blob/39019ce82a5227915adb556b61035232a65f3a5a/scripts/construct-leaflet-map.js#L166
to
Thank you very much.