jsvectormap
jsvectormap copied to clipboard
Could you please extend your library to use it in ShadowDOM?
Because of that line on the screenshot, I can't use a tooltips in the ShadowDOM. I've managed to initialize inside web-component, because you have option to init with element instead of selector. Otherwise it's doesn't work if you are use selector in ShadowDOM.
The same problem with tooltips, because they are still using a DOM to append elements. I suggest to extend Tooltip class with the parent element, where the developers can specify a root element to append tooltips.
I've solved it to add positon absolute for the Tooltip:
this.map = new jsVectorMap({ onRegionTooltipShow(event, tooltip, code) { tooltip.css({ position: 'absolute' }); } });