mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Fix: zoom animation bug (was visible on really big markers - like svg layers)
This commit is contained in:
parent
35588dbd48
commit
c23e206c7c
@ -211,6 +211,14 @@ export default class GoogleMap extends Component {
|
||||
|
||||
overlay.setMap(map);
|
||||
|
||||
maps.event.addListener(map, 'zoom_changed', () => {
|
||||
// recalc position at zoom start
|
||||
if(this_.geoService_.getZoom() !== map.getZoom()) {
|
||||
this_.updateCounter_++;
|
||||
this_._onBoundsChanged(map, maps);
|
||||
}
|
||||
});
|
||||
|
||||
maps.event.addListener(map, 'idle', () => {
|
||||
if (this.resetSizeOnIdle_) {
|
||||
this._setViewSize();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user