humangeo / leaflet-dvf

Leaflet Data Visualization Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BarChartDataLayer hides mouse over events for the barchart marker.

rickj33 opened this issue · comments

I noticed using the BarChartDataLayer, and providing a custom bar marker, that the bar marker never gets the mouse over events due to the BarChartDataLayer having already bound to the mouse events.
I created a custom BarChartDataLayer and overrode the _bindMouseEvents to do nothing, once i did that my custom bar marker started showing the correct tool tip.

L.CustomBarChartDataLayer = L.BarChartDataLayer.extend({
    initialize: function (data, options) {
        L.BarChartDataLayer.prototype.initialize.call(this, data, options);
    },

    _bindMouseEvents: function (layer, layerOptions, legendDetails)
    {
    }

    });

Thanks for finding this! I'll look into it and hopefully have a fix soon that keeps you from having to employ workarounds.