dc.leaflet.js
dc.leaflet.js copied to clipboard
Maps not initializing / rendering
Thanks for releasing this. Im using this with the latest dc version (2.0 alpha 2) and maybe thats the problem but I am unable to get the marker chart to actually render/show. dc.renderAll() triggers all other charts execept the leaflet ones.
Invoking render() / draw() directly on the chart object has no effect either. Added various breakpoints to the code but those are never hit.
Does reverting to the older versions of dc help?
I have tried with both dc-master and dc-stable and I can't get it to work either. It's strange because I get the map to render when it's the only chart object. But when I add more, it stops rendering without any errors in the console.
edit: Forget this comment. My problem was based on a bootstrap3 layout and I fixed it with some css.
I made my example work with the latest version and pushed a branch to my repo. @dgorissen you can try and checkout the dc-2.0.0-alpha branch from https://github.com/monostop/dc.leaflet.js/tree/dc-2.0.0-alpha.2 and see if it works for you.
Sorry for the late response. Was on a long trip.
I tested it only with 1.7.0. Haven't gotten around adapting/testing with the latest versions. Will fix up some stuff on the code and will start working on versioning. Not sure why it wouldn't work though. I don't use any special features of dc. Unless the model changed on 2.0.0 somehow. Will take a look
I had the same problem and @monostop fix works perfect. +1 for merging it into main dc.leaflet.js repository
Yes, there was a fair amount of interface drift in dc.js between 1.7 and 2.0.
https://github.com/dc-js/dc.leaflet.js is compatible with dc.js 2.0