dc.leaflet.js icon indicating copy to clipboard operation
dc.leaflet.js copied to clipboard

Maps not initializing / rendering

Open dgorissen opened this issue 9 years ago • 5 comments

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.

dgorissen avatar Aug 11 '14 13:08 dgorissen

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.

monostop avatar Aug 15 '14 15:08 monostop

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.

monostop avatar Aug 19 '14 12:08 monostop

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

yurukov avatar Sep 05 '14 22:09 yurukov

I had the same problem and @monostop fix works perfect. +1 for merging it into main dc.leaflet.js repository

pbadenski avatar Jan 13 '15 05:01 pbadenski

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

gordonwoodhull avatar Nov 19 '15 15:11 gordonwoodhull