- 博客(4)
- 资源 (6)
- 收藏
- 关注
原创 openlayers 展示gif的2种方案
openlayers官方API上是不支持gif的(ol.style.Icon),但是在openlayers6,官网给出了一个使用gifler插件的方式来展示gif图标的效果(经测试,在openlayers4 openlayers5也是支持的),这种实现方案可以替换之前常用展示gif的方法,先使用html代码段加入gif图片,再用overlay渲染的方式,这种方式最大的问题是使用overlay渲染的会置顶于openlayers,而gifler渲染可以通过zIndex方式控制显示在想要展示的层级(不一定时最顶层
2021-05-19 09:24:59
1204
原创 git missing change-id解决办法
公司的git环境 需要把代码提交后评审分支,git push origin HEAD:refs/for/dev出现missing change-id的问题解决方法1:remote: gitdir=$(git rev-parse --git-dir); scp -p -P 29418 ****@*******:hooks/commit-msg ${gitdir}/hooks/ remote: and then amend the commit: remote: git commit --amend -
2020-11-03 17:05:01
3575
原创 react antd的关于图标两个小问题
根据后台菜单返回的icon字段生成antd icon先封装成一个组件,根据传入的props icon参数来显示对象的Iconimport React from "react";import * as Icon from "@ant-design/icons";const MyIcon = (props) => { return ( React.createElement( Icon[props.icon], {
2020-08-20 11:12:02
969
GSM原理与相关资料
2011-11-16
UNIX编程环境UNIX编程环境
2011-05-25
校园一卡通系统设计与实现
2009-07-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人