跳至内容

小溪

我的目标在远方

  • 关于

月度归档: 2022年6月

发布于2022年6月11日2022年9月20日

修复 leaflet 默认 Marker 图标

delete L.Icon.Default.prototype._getIconUrl
L.Icon.Default.mergeOptions({
  iconUrl: require('leaflet/dist/images/marker-icon.png'),
  iconRetinaUrl: require('leaflet/dist/images/marker-icon-2x.png'),
  shadowUrl: require('leaflet/dist/images/marker-shadow.png')
})

来源:https://github.com/Leaflet/Leaflet/issues/4968#issuecomment-269750768

友情链接

  • DigitalOcean
  • 下载 Firefox
  • 木鱼

近期文章

  • Vite 开发默认端口为什么改为 5173
  • 修复 leaflet 默认 Marker 图标
  • 解决 npm i 会重复安装依赖
  • 前端开发资料大杂烩
  • 理解 grid 布局中的长度单位 fr

近期评论

  • longxi发表在《video.js 7 禁用单击暂停,保留双击全屏》
  • 李h发表在《video.js 7 禁用单击暂停,保留双击全屏》
  • Chieffo发表在《Vite2 + Vue2,基本可用》
  • 特地来感谢!发表在《查看京东/新蛋/亚马逊商品历史价格》

归档

  • 2023年3月
  • 2022年6月
  • 2022年4月
  • 2021年11月
  • 2021年6月
  • 2021年5月
  • 2019年8月
  • 2019年7月
  • 2017年10月
  • 2017年8月
  • 2017年6月
  • 2016年6月
  • 2012年4月
  • 2012年3月
  • 2011年12月
  • 2011年11月
  • 2011年10月

分类

  • 人生如梦
  • 前方有坑
  • 未分类
  • 胡思乱想

友情链接

  • DigitalOcean
  • 下载 Firefox
  • 木鱼
自豪地采用WordPress