intellipharm-pty-ltd / dc-addons

dc.js chart addons
http://intellipharm.github.io/dc-addons/
MIT License
67 stars 27 forks source link

Map dragging broken after clicking on marker #17

Closed ktebbe closed 8 years ago

ktebbe commented 8 years ago

I'm running into the issue where the map won't drag after clicking on a marker. If you click on a marker and then click on the map, it's fine. If you click on a marker and then click "clear filter," it's fine. But if you click on a marker and then zoom, or click on a marker and then drag, or click on a marker and then click the "x" on the pop-up, then dragging stops working.

It seems that the problem is coming from the declaration of y in dc-leaflet.min.js and is saying that IndexOf is not a function. Any idea what's causing this?

Intellipharm commented 8 years ago

Are you able to create a plunkr replicating the issue

ktebbe commented 8 years ago

Unfortunately I cannot. However, if it helps, this is where the error is thrown. Again, the error happens right after I zoom or drag or click the "x."

error screen

Tim-Intellipharm commented 8 years ago

@jasonnance was awesome and found the problem. I have merge in his pull request and this issue should be solved.