Leaflet
Leaflet copied to clipboard
:leaves: JavaScript library for mobile-friendly interactive maps
I am using leaflet 1.7.1 and using react-leaflet as well . installed "leaflet-rotate": "^0.1.4", also trying using this : But i could not use the setBearing to map .
if i use bearing = 0 everything is ok. map.fitBounds(bounds, { //padding: [500, 50] paddingTopLeft: [width, 50], paddingBottomRight: [50, 50], });  but bearing 0 has a problem.  It...
This PR backports https://github.com/Leaflet/Leaflet/commit/a2595bbfe8109dc9cd24a15d28e0e4e6048e2e5f, to fix #1
Hey, i created a native web-app with PhoneGab. By adding a bearing to the map a gutter appears on mobile devices. Heres a screenshot: 
In the basic `rotate.html` example (https://rawgit.com/fnicollet/Leaflet/rotate-master/debug/rotate/rotate.html), the polyline disappears after `mouseup` on panning, is animated out of the view on zoom. The line reappears when the view is rotated. Additionally,...
The `master` branch in Leaflet now uses a ES6 module structure, changing a **lot** of the internal calls to e.g. `L.DomEvent.*` → `DomEvent.*`. Code for the rotate functionality should be...
Originally reported by @hyperknot: https://github.com/hyperknot/Leaflet/issues/5 maxBoundsViscosity: 1 + setMaxBounds + setBearing + pan anywhere on low zoom => funny dancing movement
I think that #2 is deeper than just `maxBounds`, and affects `map.getBounds()` directly. Trying this code will show that the map bounds calculation is wrong, as it doesn't take into...
Following the [original issue](https://github.com/hyperknot/Leaflet/issues/1), there is still one problem with vector rotation, when the map is at zoom 0/1. We need to backport this fix from @IvanSanchez work https://github.com/Leaflet/Leaflet/commit/a2595bbfe8109dc9cd24a15d28e0e4e6048e2e5f Transformation...
Currently there is one event which fires inside the setBearing function. In the case of the touchRotate feature, this event fires repeatedly making it hard to react to the event...