Fix: zoom animation bug (was visible on really big markers - like svg layers)

This commit is contained in:
cybice 2015-09-24 20:37:46 +03:00
parent 35588dbd48
commit c23e206c7c

View File

@ -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();