You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.
i have a blinking problem on test server using this.map.fitBounds(boundCoords) in componentDidUpdate:
TypeError: Cannot read property 'setCenter' of undefined
at n._handleZoomAnim (react-leaflet-google.js:1635)
at n.fire (leaflet-src.js:593)
at n._moveEnd (leaflet-src.js:4193)
at n._resetView (leaflet-src.js:4137)
at n.setView (leaflet-src.js:3191)
at n.fitBounds (leaflet-src.js:3280)
at t.value (Map.js:211)
And in the source code file dist/react-leaflet-google.js I see that there isn't check on undefined value of this._mutant in _handleZoomAnim like in other methods:
_handleZoomAnim: function _handleZoomAnim() {
var center = this._map.getCenter();
var _center = new google.maps.LatLng(center.lat, center.lng);
this._mutant.setCenter(_center);
this._mutant.setZoom(Math.round(this._map.getZoom()));
},
In _resize method:
_resize: function _resize() {
var size = this._map.getSize();
if (this._mutantContainer.style.width === size.x && this._mutantContainer.style.height === size.y) return;
this.setElementSize(this._mutantContainer, size);
*if (!this._mutant) return;*
google.maps.event.trigger(this._mutant, "resize");
},
Should it be?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
i have a blinking problem on test server using
this.map.fitBounds(boundCoords)
incomponentDidUpdate
:And in the source code file
dist/react-leaflet-google.js
I see that there isn't check on undefined value ofthis._mutant
in_handleZoomAnim
like in other methods:In
_resize
method:Should it be?
The text was updated successfully, but these errors were encountered: