04-15-2016 03:21 AM
I'm looking for a way of adding custom event handler for the GeoJSON elements? The default handler in BI Map just communicates with the charts but I'd be interested also to different behavior (such as opening URL based on some attribute).
Basically it should be possible to do that through Leaftlet JS but I don't know the correct approach and how to find GeoJSON object in DOM.
04-21-2016 01:44 AM - edited 04-21-2016 01:47 AM
Well after the new release of SMApps there might be a way of doing this:
// need to know leafletMapId var layerGroup = L.layerGroup(); chart = gvc.chart.choropleth(leafletMapId, leafletLayerGroup);
Sounds simple but requires some more investigation
Our GVC logic documentation: