3Dheat map
Useheatmap-3dType layers visualize the value of an attribute in different locations.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>3Dheat map</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"/>
<style>
body {
margin: 0;
padding: 0;
}
#map {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
</style>
<script src="./heatmap.js"></script>
<script src="https://delivery.mapmost.com/cdn/sdk/lite/v9.1.0/mapmost-lite-min.js"></script>
</head>
<body>
<div id="map"></div>
<script>
let map = new mapmost.Map({
container: 'map',
style: "<your style url>",
center: [120.71930846, 31.2911422673],
zoom: 13,
pitch: 60,
bearing: 0,
userId: '***', // Authorization code,This parameter must be added
});
map.on('load', function () {
fetch('../example_data/random_points_3857.geojson').then(
res => res.json()
).then(response => {
let dataPoints = [];
response.features.map(item => {
let coor = item.geometry.coordinates;
dataPoints.push([coor[0], coor[1], item.properties.num])
})
let op = {
id: '3d-heatmap-layer',
type: 'heatmap-3d',
data: dataPoints,//dataPoints = [[lon,lat,value]],The parameters are longitude, latitude, and attribute values.
width: 256,//Heat map canvas width, default256
height: 256,//Heat map canvas height, default256
heightRatio: 200,//3DHeat map stretch height, default200
proj:"3857",//Coordinate system support'3857'and'4326',default'4326'
blur: 0.85,//[0,1] Optional parameters default = 0.85 ,Applies to all point data. The higher the coefficient, the smoother the gradient. The default is0.85
radius: 6, //Radius of each data point, default6
gradient: {
'0.1': 'rgb(0,102,255)',
'0.2': 'rgb(102,255,255)',
'0.3': 'rgb(102,255,153)',
'0.4': 'rgb(125,255,0)',
'0.5': 'rgb(255,255,0)',
'0.6': 'rgb(255,204,0)',
'0.7': 'rgb(255,128,0)',
'0.8': 'rgb(255,102,0)',
'0.9': 'rgb(255,0,0)',
}, //A ribbon object representing a gradient,If not set, the default style will be used
};
map.addLayer(op);
})
});
</script>
</body>
</html>