Skip to content

Commit

Permalink
同步readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dyj committed Jan 7, 2020
1 parent 408cf4b commit fb0f2cc
Show file tree
Hide file tree
Showing 318 changed files with 40 additions and 24 deletions.
64 changes: 40 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# cesium-navigation-umd
这是一个基于cesium-navigation-es6 迁移的仓库。我使用rollup重新编译了原作者的release。去掉了dev依赖。dist中内容为编译产物。可以直接引用。
这是一个基于cesium-navigation-es6 迁移的仓库。但是原作者仅提供`es6` 模式下的引用,需要`npm` 安装。我使用`rollup`重新编译了原作者的release。去掉了`dev`依赖。`dist`中内容为编译产物。可以直接引用。

demo在[这里](http://61.155.169.52:8080/CesiumNavigationUmd)(受到带宽限制,加载可能略慢)

demo在[这里](http://61.155.169.52:8080/CesiumNavigationUmd/demo/index.html)(受到带宽限制,加载可能略慢)

如果不能看,可以看[原作者的](https://richard1015.github.io/cesium/)

Expand All @@ -10,6 +11,11 @@ demo在[这里](http://61.155.169.52:8080/CesiumNavigationUmd)(受到带宽限
[原作者github主页](https://github.com/richard1015/cesium-navigation-es6)


效果图
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200107165327365.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI5NzIyMjgx,size_16,color_FFFFFF,t_70)

![在这里插入图片描述](https://img-blog.csdnimg.cn/20200107165213958.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI5NzIyMjgx,size_16,color_FFFFFF,t_70)

## 修改说明

- CesiumNavigation.js
Expand All @@ -32,31 +38,35 @@ demo在[这里](http://61.155.169.52:8080/CesiumNavigationUmd)(受到带宽限
```javascript

var viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider: false,
baseLayerPicker: false,
timeline: false,
infoBox: false,
navigationHelpButton: false,
fullscreenButton: false,
animation: false,
geocoder: false,
homeButton: false,
sceneModePicker: false
});
imageryProvider: false,
baseLayerPicker: false,
timeline: false,
infoBox: false,
navigationHelpButton: false,
fullscreenButton: false,
animation: false,
geocoder: false,
homeButton: false,
sceneModePicker: false
});


var options = {};
// 用于在使用重置导航重置地图视图时设置默认视图控制。接受的值是Cesium.Cartographic 和 Cesium.Rectangle.
options.defaultResetView = Cesium.Rectangle.fromDegrees(80, 22, 130, 50);
// 用于启用或禁用罗盘。true是启用罗盘,false是禁用罗盘。默认值为true。如果将选项设置为false,则罗盘将不会添加到地图中。
options.enableCompass = true;
// 用于启用或禁用缩放控件。true是启用,false是禁用。默认值为true。如果将选项设置为false,则缩放控件将不会添加到地图中。
options.enableZoomControls = true;
// 用于启用或禁用距离图例。true是启用,false是禁用。默认值为true。如果将选项设置为false,距离图例将不会添加到地图中。
options.enableDistanceLegend = true;
// 用于启用或禁用指南针外环。true是启用,false是禁用。默认值为true。如果将选项设置为false,则该环将可见但无效。
options.enableCompassOuterRing = true;
CesiumNavigation.umd(viewer, options);

// 用于在使用重置导航重置地图视图时设置默认视图控制。接受的值是Cesium.Cartographic 和 Cesium.Rectangle.
options.defaultResetView = Cesium.Rectangle.fromDegrees(80, 22, 130, 50);
// 用于启用或禁用罗盘。true是启用罗盘,false是禁用罗盘。默认值为true。如果将选项设置为false,则罗盘将不会添加到地图中。
options.enableCompass = true;
// 用于启用或禁用缩放控件。true是启用,false是禁用。默认值为true。如果将选项设置为false,则缩放控件将不会添加到地图中。
options.enableZoomControls = true;
// 用于启用或禁用距离图例。true是启用,false是禁用。默认值为true。如果将选项设置为false,距离图例将不会添加到地图中。
options.enableDistanceLegend = true;
// 用于启用或禁用指南针外环。true是启用,false是禁用。默认值为true。如果将选项设置为false,则该环将可见但无效。
options.enableCompassOuterRing = true;



CesiumNavigation.umd(viewer, options);

```

Expand All @@ -67,6 +77,12 @@ var options = {};
npm run build
```

## 其他

本人博客,欢迎来这里提问或者讨论问题。

https://blog.csdn.net/qq_29722281




Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit fb0f2cc

Please sign in to comment.