本文记录使用Vue框架绘制图例的代码片段。
可以嵌入到cesium视图中,也可以直接绘制到自己的原生系统中。
<div v-for="(color, index) in colors" :key="index" class="legend-item"> <div class="color-box"