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
Thanks so much for this example. I was using it with a style that only has a few layers, which only exist in the US (e.g. there isn't tile coverage for the whole world.):
When my cursor went outside those features I got the following error:
Warning: render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.
This isn't something you would encounter using a full OSM-based style, but to account for this I changed the setTooltip function to use ReactDOM.unmountComponentAtNode(this.tooltipContainer); instead of this.tooltipContainer.innerHTML = ''; for removing the tooltip when there are no features.
The text was updated successfully, but these errors were encountered:
bryik
added a commit
to bryik/mapbox-react-examples
that referenced
this issue
Nov 3, 2019
Thanks so much for this example. I was using it with a style that only has a few layers, which only exist in the US (e.g. there isn't tile coverage for the whole world.):
When my cursor went outside those features I got the following error:
This isn't something you would encounter using a full OSM-based style, but to account for this I changed the setTooltip function to use
ReactDOM.unmountComponentAtNode(this.tooltipContainer);
instead ofthis.tooltipContainer.innerHTML = '';
for removing the tooltip when there are no features.The text was updated successfully, but these errors were encountered: