04 2022 档案
摘要:const bounds = window.map.getBounds() var w = bounds._ne.lng- bounds._sw.lng; var h = bounds._ne.lat- bounds._sw.lat; const params = { x1: bounds._sw.
阅读全文
摘要:在ant design vue 的数据会先中, 一般会用 parameter.xx来接受 回显数据 如果 回显数据时input ,时,可能会没问题(这个不记得了); 但是在回显其他的 如 select 二级联动等需要点击操作的组件时, 会发现点击没有反应, 具体原因不清楚, 但是解决办法如下: 不能
阅读全文
摘要:在 使用echarts 做饼状图,因为label 字段太长,超出部分不显示, 要求超出部分用省略号代替, 在查找文档时,未找到对应的解决方案, 在综合多个解决方案后,得到以下的解决方案 原代码: label: { formatter: '{name|{b}}\n{value|{d}%( {c})}'
阅读全文
摘要:1: initLayer(options, beforeId) { this.map.addLayer( { id: options.id, type: options.type, source: options.source, layout: options.layout, paint: opti
阅读全文