上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页
摘要: 如果只是展示,可以在 properties.description 中使用原生html , 然后 // new SFMap.Popup() // .setLngLat(coordinates) // .setHTML(description) // .addTo(window.map); 便可以渲染 阅读全文
posted @ 2022-05-10 16:59 泽泽生龙 阅读(1023) 评论(0) 推荐(0)
摘要: //函数初始化时要进行监听 function rightMouseMenu(){ var rightMenu = new SFMap.RightMenuControl({ className: 'sfmap-ctrl-rightmenu-custom', // 菜单内容 menuItems: [ { 阅读全文
posted @ 2022-05-10 16:52 泽泽生龙 阅读(389) 评论(0) 推荐(0)
摘要: 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. 阅读全文
posted @ 2022-04-27 15:15 泽泽生龙 阅读(61) 评论(0) 推荐(0)
摘要: 在ant design vue 的数据会先中, 一般会用 parameter.xx来接受 回显数据 如果 回显数据时input ,时,可能会没问题(这个不记得了); 但是在回显其他的 如 select 二级联动等需要点击操作的组件时, 会发现点击没有反应, 具体原因不清楚, 但是解决办法如下: 不能 阅读全文
posted @ 2022-04-26 16:09 泽泽生龙 阅读(1556) 评论(0) 推荐(1)
摘要: 在 使用echarts 做饼状图,因为label 字段太长,超出部分不显示, 要求超出部分用省略号代替, 在查找文档时,未找到对应的解决方案, 在综合多个解决方案后,得到以下的解决方案 原代码: label: { formatter: '{name|{b}}\n{value|{d}%( {c})}' 阅读全文
posted @ 2022-04-24 11:08 泽泽生龙 阅读(11222) 评论(0) 推荐(0)
摘要: 1: initLayer(options, beforeId) { this.map.addLayer( { id: options.id, type: options.type, source: options.source, layout: options.layout, paint: opti 阅读全文
posted @ 2022-04-19 10:55 泽泽生龙 阅读(2192) 评论(0) 推荐(1)
摘要: customRequest (data) { const formData = new FormData() formData.append('file', data.file) formData.append('token', 'aiufpaidfupipiu')//随便写一个token示例 th 阅读全文
posted @ 2022-03-31 11:38 泽泽生龙 阅读(844) 评论(0) 推荐(0)
摘要: <template> <a-modal :visible="modalValue.visible" title="上传" width="38%" :maskClosable="false" @ok="handleOk" @cancel="handleCancel" > <a-upload-dragg 阅读全文
posted @ 2022-03-30 15:17 泽泽生龙 阅读(1126) 评论(0) 推荐(0)
摘要: 使用mapbox的聚集功能时,可以注意到当聚集的数字超过1000时会缩写为以k为单位的数,如 1.3k 如果想要把这个英文的单位转为中文的“千”应该怎么做呢?首先去github上找mapbox-gl-js的源码,在源码里用find in path搜索“cluster”,发现有一个包的名字叫做“sup 阅读全文
posted @ 2022-03-29 17:19 泽泽生龙 阅读(351) 评论(0) 推荐(0)
摘要: 问题:不知道如何对多个图层进行排序解决办法:利用 addLayer(layer,[before]) 这个函数对图层顺序进行控制。这个函数的第一个参数是要添加的图层a,第二个参数是另一个图层的名字b(字符串形式)。如果图层b存在,那么图层a会被放置在图层b的前面。这让图层可以放置在图层栈里额任意位置。 阅读全文
posted @ 2022-03-29 17:18 泽泽生龙 阅读(1216) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页