Closed schloerke closed 5 years ago
Fixes https://github.com/rstudio/leaflet/issues/623 Fixes https://github.com/rstudio/leaflet/issues/608
Solves race case of trying to get a mapCenter when the widget has rendered, but the map has not rendered.
I have not looked for other situations where this might be useful within leaflet.extras.
leaflet.extras
Method: https://leafletjs.com/reference-1.3.0.html#map-whenready
Merging to close issues on leaflet
Fixes https://github.com/rstudio/leaflet/issues/623 Fixes https://github.com/rstudio/leaflet/issues/608
Solves race case of trying to get a mapCenter when the widget has rendered, but the map has not rendered.
I have not looked for other situations where this might be useful within
leaflet.extras
.Method: https://leafletjs.com/reference-1.3.0.html#map-whenready