Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

D3-bind svg elements after Leaflet creates them? #1

Open
gordonwoodhull opened this issue Aug 8, 2015 · 0 comments
Open

D3-bind svg elements after Leaflet creates them? #1

gordonwoodhull opened this issue Aug 8, 2015 · 0 comments

Comments

@gordonwoodhull
Copy link

As reported here, d3.tip and other d3 stuff won't work on the shapes in dc.leaflet because the data isn't bound:

http://stackoverflow.com/questions/31790830/d-undefined-for-d3-tip-tooltip-with-dc-leafletchoroplethchart

Since leaflet is creating the svg elements, not d3, the data is not attached and dc.leaflet.js is internally keeping a _dataMap to specify colors etc.

Could we bind those elements post hoc? Or is this dangerous?

Does leaflet have its own notion of data binding?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant