0
我設法創建一個使用「Highmaps」(http://www.highcharts.com/maps/demo)挪威地圖帶縣,當它選擇一個縣就深入到各市。我需要在下鑽中捕捉select事件並根據市政府顯示一些數據。但找不到任何鑽取事件。Highmaps向下鑽取地圖選擇事件
任何想法?
我設法創建一個使用「Highmaps」(http://www.highcharts.com/maps/demo)挪威地圖帶縣,當它選擇一個縣就深入到各市。我需要在下鑽中捕捉select事件並根據市政府顯示一些數據。但找不到任何鑽取事件。Highmaps向下鑽取地圖選擇事件
任何想法?
我的Highcharts服務檯支持幫助了它。 這裏是小提琴http://jsfiddle.net/bydfsxe2/
// Set drilldown pointers
$.each(data, function (i) {
this.drilldown = this.properties['hc-key'];
this.value = i; // Non-random bogus data
});
// Instanciate the map
Highcharts.mapChart('container', {
chart: {
events: {
drilldown: function (e) {
//call external function
alert(e.point.drilldown);
//rest of the code
在你連接有一個明細的演示,在你看到鑽事件的網站。你在那裏找到一個選定的國家 - 參見[示例](http://jsfiddle.net/k3z7r32m/) – morganfree
只能從父映射觸發,而不是向下鑽取的映射。 –