Hello, in my project i am often I change the position of the map on the basis of the extreme coordinates, center and zoom i always take from fitBounds in render method. All my changes written to url and i can push or pop map position.
Problem: when trigger re-render with new NW, SE: center and zoom - correctly but NW and SE changed for themselves after onChange call. I know this is need but i will know future real NW and SE before change map.
Maybe you can in fitBounds send future NW and SE, or please say me how i can do this.
Hello, in my project i am often I change the position of the map on the basis of the extreme coordinates, center and zoom i always take from fitBounds in render method. All my changes written to url and i can push or pop map position.
Problem: when trigger re-render with new NW, SE: center and zoom - correctly but NW and SE changed for themselves after onChange call. I know this is need but i will know future real NW and SE before change map.
Maybe you can in fitBounds send future NW and SE, or please say me how i can do this.