diff --git a/README.md b/README.md index c9151d4..3ae8b52 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,46 @@ # cesium-plot-js - cesium 标绘插件 - + -[在线示例:demo](https://ethan-zf.github.io/CesiumPlot/examples/index.html) +[在线示例:demo](https://ethan-zf.github.io/cesium-plot-js/examples/index.html) -### 类 + +### CDN + +1. 引入文件 + +``` + +``` +2. 调用绘制api + +``` + new CesiumPlot.FineArrow(Cesium, viewer); +``` + +### NPM + +1. install + +``` +npm i cesium-plot-js +``` + +2. import + +``` +import CesiumPlot from 'cesium-plot-js'; +``` + +3. 调用绘制api + +``` + new CesiumPlot.FineArrow(Cesium, viewer); +``` + +### Class 每个图形为独立的类,绑定事件或其他操作通过类的实例来实现 @@ -36,9 +69,9 @@ cesium 标绘插件 所有图形的构造函数: -类名(cesium: Cesium, viewer: Cesium.Viewer, style:[PolygonStyle](#PolygonStyle) | [LineStyle](#LineStyle)) +<类名>(cesium: Cesium, viewer: Cesium.Viewer, style?: [PolygonStyle](#PolygonStyle) | [LineStyle](#LineStyle)) -