添加等值线热力图
js
CloudApi.SuperAPI("AddContourHeatMap",params);
参数
js
const params = {
"Id": "2",
"Transparency": 0.5,
"CoordType": 0,
"HeatColor": [
{
"Level": "1",
"Color": "0000FF"
},
{
"Level": "2",
"Color": "00FFFF"
},
{
"Level": "3",
"Color": "00FF00"
},
{
"Level": "4",
"Color": "FFFF00"
},
{
"Level": "5",
"Color": "FF0000"
}
],
"Points": [
{
"Coord": "119.268266,27.043305",
"Height": 10,
"Value": 40
},
{
"Coord": "119.268419,27.043276",
"Height": 10,
"Value": 43
},
{
"Coord": "119.268644,27.043253",
"Height": 10,
"Value": 50
},
{
"Coord": "119.268460,27.043822",
"Height": 10,
"Value": 54
},
{
"Coord": "119.268963,27.043867",
"Height": "10",
"Value": "60"
},
{
"Coord": "119.269408,27.043732",
"Height": 10,
"Value": 63
},
{
"Coord": "119.267951,27.044689",
"Height": 10,
"Value": 70
},
{
"Coord": "119.269004,27.044422",
"Height": 10,
"Value": 73
},
{
"Coord": "119.267819,27.043774",
"Height": 10,
"Value": 75
},
{
"Coord": "119.267594,27.043547",
"Height": 10,
"Value": 80
},
{
"Coord": "119.267092,27.043538",
"Height": 10,
"Value": 100
},
{
"Coord": "119.267717,27.043566",
"Height": 10,
"Value": 95
},
{
"Coord": "119.267782,27.043183",
"Height": 10,
"Value": 40
},
{
"Coord": "119.268979,27.044443",
"Height": 10,
"Value": 45
},
{
"Coord": "119.269229,27.043586",
"Height": 10,
"Value": 40
}
]
}