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 currently using react-datamaps v0.3.0 and it's perfect for what I need but then I tried arcConfig.popupTemplate but can't seem to make it work. The 'popupTemplate' function returns a plain string. I tested it on bubblesConfig and it works fine. Is this still unsupported or am I doing something wrong?
The bubbles example returns the string wrapped in <div class="hoverinfo">...</div>, which I think datamaps uses to generate HTML for the box. What happens if you do that?
At some point #3 ought to make popups a lot easier.
I'm currently using react-datamaps v0.3.0 and it's perfect for what I need but then I tried arcConfig.popupTemplate but can't seem to make it work. The 'popupTemplate' function returns a plain string. I tested it on bubblesConfig and it works fine. Is this still unsupported or am I doing something wrong?
Here's my code:
<Datamap bubbles={this.state.bubbles} bubblesConfig={{ popupTemplate: bubblePopupTemplate }} arc={this.state.arcs} arcConfig={{ popupTemplate: arcPopupTemplate }} />
const bubblePopupTemplate = function(geo, data) { return 'hello'; };
const arcPopupTemplate = function(geo, data) { return 'hi'; };
Thanks in advance for your awesome work! 😄
The text was updated successfully, but these errors were encountered: