人员聚集告警地图显示

pull/3/head
fangjiakai 2024-02-28 10:50:02 +08:00
parent c33eaadd63
commit dfd1a6dd1a
1 changed files with 7 additions and 3 deletions

View File

@ -336,14 +336,18 @@ const addEntity = (id, name, lon, lat, height) => {
export const handleViewAlarm = (alarm, userList) => {
const canvas = document.createElement("canvas");
canvas.width = 100;
canvas.height = 30;
const width = 100;
const height = 30;
canvas.width = width;
canvas.height = height;
const ctx = canvas.getContext("2d");
ctx.fillStyle = "#000000";
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = "#ff0000";
ctx.font = "normal bold 20px Arial";
ctx.fillText("聚集告警", 5, 15);
ctx.textAlign = "center";
ctx.textBaseline = "middle";
ctx.fillText("聚集告警", width / 2, height / 2);
// 聚集圆锥特效
const Cone = new window.CustomCesium.Cone(window.$icy);