sat-earth 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -128,6 +128,12 @@ import { SatMapTypes, type MenuItem } from 'sat-earth'
128
128
  1. 在mars3d的Map构造参数的基础上扩展了custom对象。
129
129
 
130
130
  custom: {
131
+ // 工具栏新增项
132
+ toolbar: {
133
+ mapSplit: true, // 开启卷帘工具
134
+ bookmark: true, // 开启视角书签工具
135
+ keyboardRoam: true, // 开启键盘漫游功能
136
+ },
131
137
  layers: {
132
138
  // list 这是要加入到 'SatSource' 数据源管理中的自定义Layer图层,参数与 mars3d构造 Layer 的参数
133
139
  // 一致,通过 'id/pid' 在 'SatSource' 组件中形成对应的树形结构, 如果不加pid的时候或者任意添加的
@@ -172,6 +178,11 @@ const options: SatMapTypes.SatMapOptions = {
172
178
  list: []
173
179
  },
174
180
  custom: {
181
+ toolbar: {
182
+ mapSplit: true, // 开启卷帘工具
183
+ bookmark: true, // 开启视角书签工具
184
+ keyboardRoam: true, // 开启键盘漫游功能
185
+ },
175
186
  layers: {
176
187
  /* list 这是要加入到数据源管理中的自定义Layer图层,参数与 mars3d构造 Layer 的参数一致,
177
188
  通过 'id/pid' 在 'SatSource' 组件中形成对应的树形结构, 不加 pid 的时候或者任意添加的 pid
@@ -247,9 +258,7 @@ const options: SatMapTypes.SatMapOptions = {
247
258
  cover: false, // 是否覆盖内置的地形图层
248
259
  list: [] // 自定义的地形图层Layer集合
249
260
  },
250
- mapSplit: true, // 开启卷帘工具
251
- bookmark: true // 开启视角书签工具
252
- }
261
+ },
253
262
  },
254
263
  },
255
264
  }
@@ -74,8 +74,11 @@ export declare type SatMapControl = Mars3dMap.controlOptions & {
74
74
  };
75
75
  };
76
76
  export declare type SatMapCustomOptions = {
77
- mapSplit?: boolean;
78
- bookmark?: boolean;
77
+ toolbar?: {
78
+ mapSplit?: boolean;
79
+ bookmark?: boolean;
80
+ keyboardRoam?: boolean;
81
+ };
79
82
  layers?: {
80
83
  list?: SatLayer[];
81
84
  auxiliaryLayers?: {