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
I'm using OverlayViews instead of markers in order to make them completely custom. Everything was working as expected until I started using setState with a callback.
OverlayViewHelper.js:44 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
at Object.mountContainerElementToPane (OverlayViewHelper.js:44)
at Object.draw (OverlayView.js:129)
at _baseDelay.js:18
That appears to be referencing:
function mountContainerElementToPane(mapPanes, containerElement, props) {
var mapPaneName = props.mapPaneName;
(0, _invariant2.default)(!!mapPaneName, "OverlayView requires either props.mapPaneName or props.defaultMapPaneName but got %s", mapPaneName);
// https://developers.google.com/maps/documentation/javascript/3.exp/reference#MapPanes
mapPanes[mapPaneName].appendChild(containerElement);
}
This only happens the first time I update the results. I'm using Google Places so I get 20 results initially, which creates 20 overlay views, and 20 of the above errors. However, if I then paginate the results and get 20 more results, 20 new overlay views are added to the map but I don't get errors.
If I comment-out the callback, no errors appear (but then the bounds no longer get updated, of course).
Any idea why this might be happening? Or a suggestion on a better way to achieve the bounds change?
The text was updated successfully, but these errors were encountered:
davidbarker
changed the title
Uncaught TypeError: Cannot read property 'overlayMouseTarget' of undefined when using OverlayView
OverlayViewHelper.js:44 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'. when using OverlayView
Apr 7, 2017
davidbarker
changed the title
OverlayViewHelper.js:44 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'. when using OverlayView
OverlayViewHelper.js:44 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'
Apr 7, 2017
I'm using OverlayViews instead of markers in order to make them completely custom. Everything was working as expected until I started using setState with a callback.
For example, I'm currently doing the following:
which leads to the error:
That appears to be referencing:
This only happens the first time I update the results. I'm using Google Places so I get 20 results initially, which creates 20 overlay views, and 20 of the above errors. However, if I then paginate the results and get 20 more results, 20 new overlay views are added to the map but I don't get errors.
If I comment-out the callback, no errors appear (but then the bounds no longer get updated, of course).
Any idea why this might be happening? Or a suggestion on a better way to achieve the bounds change?
The text was updated successfully, but these errors were encountered: