Giter VIP home page Giter VIP logo

Comments (15)

hongfaqiu avatar hongfaqiu commented on May 28, 2024 2

应该可以了,你再试试,之前CI少发了一个包@cesium-extends/[email protected],手动补上就好了,抱歉

from cesium-extends.

hongfaqiu avatar hongfaqiu commented on May 28, 2024 1

我更新一下,似乎依赖错了

from cesium-extends.

hongfaqiu avatar hongfaqiu commented on May 28, 2024

@cesium-extends/[email protected]已经修复了呀,你有更新吗

from cesium-extends.

jak983464779 avatar jak983464779 commented on May 28, 2024

好的,感谢!!!测量面积和距离的label可以搞成自定义的吗?现在默认都是英文

from cesium-extends.

hongfaqiu avatar hongfaqiu commented on May 28, 2024

我改改

from cesium-extends.

hongfaqiu avatar hongfaqiu commented on May 28, 2024

@cesium-extends/[email protected] 已添加locale配置,在线文档中默认是中文的了,参考配置:

new Tool(viewer, {
  units: 'kilometers',
  locale: {
    start: '起点',
    area: '面积',
    total: '总计',
    formatLength: (length, unitedLength) => {
      if (length < 1000) {
        return length + '米';
      }
      return unitedLength + '千米';
    },
    formatArea: (area, unitedArea) => {
      if (area < 1000000) {
        return area + '平方米';
      }
      return unitedArea + '平方千米';
    }
  },
  drawerOptions: {
    tips: {
      init: '点击绘制',
      start: '左键添加点,右键移除点,双击结束绘制',
    }
  }
});

from cesium-extends.

jak983464779 avatar jak983464779 commented on May 28, 2024

npm install @cesium-extends/measure --save 1.1.0版本安装不上,安装都一直是1.0.3

from cesium-extends.

hongfaqiu avatar hongfaqiu commented on May 28, 2024

运行下面的命令

npm install @cesium-extends/measure@latest --save

如果还是没有更新到最新版,请检查你的npm代理镜像

from cesium-extends.

jak983464779 avatar jak983464779 commented on May 28, 2024

taobao和npm镜像我都试过了,一直是1.0.3

from cesium-extends.

hongfaqiu avatar hongfaqiu commented on May 28, 2024

npm上确实已经更新了,运行一下下面这条命令指定版本试试

npm install @cesium-extends/[email protected]

from cesium-extends.

jak983464779 avatar jak983464779 commented on May 28, 2024

image

只有这几个版本

from cesium-extends.

jak983464779 avatar jak983464779 commented on May 28, 2024

image
上面是用yarn安装的,下面这个是用的npm

from cesium-extends.

hongfaqiu avatar hongfaqiu commented on May 28, 2024

很奇怪,1.1.0是一小时前发布的,应该早就已经同步了才是,检查你项目中有没有.npmrc文件配置了局部代理
image

from cesium-extends.

jak983464779 avatar jak983464779 commented on May 28, 2024

没有做项目局部代理的

from cesium-extends.

jak983464779 avatar jak983464779 commented on May 28, 2024

可以了,大佬太给了,期待你的新插件

from cesium-extends.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.