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