0

React Leflet flyto.map fumction is not working in react-leaflet version 4.1.0. it is only working version upto 3.2.5. is there a new function for new react-leaflet version 4.1.0?

function FlyToButton() {
    const onClick = () => {
      map.flyTo(regionCoord, zoom);
    };

    return <button onClick={onClick}>Add marker on click</button>;
  }

  • I can confirm that it work on version `4.0.2`, try to downgrade and if it work open up an issue in the github repo that it does not work in `4.1.0` – Disco Oct 31 '22 at 14:34

0 Answers0