0
我想更改anychart氣泡圖數據。當我改變泡沫數據集添加新的氣泡。但不能刪除地圖中的舊氣泡。我如何設置新的氣泡數據集到地圖上。這是我的代碼示例。我想用舊氣泡替換爲新氣泡數據。anychart氣泡圖更改數據集
/*-------------------------------------------------------*/
var dataSet = anychart.data.set([
{
name: "Colombo",
lat: 6.7768798,
long: 79.9562153,
'size': 10,
desc: "We can even have VERY GOOD waves but the main problem is the very low frequency...."
},
{
name: "Kandy",
lat: 7.302461,
long: 80.6409725,
'size': 4,
desc: "Kandy Sales Updated."
}
]);
var dataSet2 = anychart.data.set([
{
name: "devndara",
lat: 8.277899131156953,
long: 80.57335996768477,
"size": 10,
desc: "New Location Added"
}
]);
/*------------------------------------------------------------------*/
function changebbl() {
map.bubble(dataSet2);
}
<div id="lkmapcontainer"></div>
在我的案件林長,緯度指着氣泡。那麼是否可以應用這種方法..你可以通過示例來解釋它..謝謝 –
方法是完全一樣的:https://jsfiddle.net/prypezsk/1/ –
謝謝..我得到了......問題解決了, –