egovamap 0.34.0 → 0.35.0

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2018-present egova
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2018-present egova
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # egovamap
2
-
3
- egovaMap JS SDK
4
-
5
- ## 使用
6
-
7
- ```
8
- npm install egovamap@~<version>
9
- ```
10
-
11
- ## 开发
12
-
13
- 代码开发测试,及发布到 npm 的注意事项,参考[DEVELOP.md](DEVELOP.md)。
14
-
15
- ## License
16
-
1
+ # egovamap
2
+
3
+ egovaMap JS SDK
4
+
5
+ ## 使用
6
+
7
+ ```
8
+ npm install egovamap@~<version>
9
+ ```
10
+
11
+ ## 开发
12
+
13
+ 代码开发测试,及发布到 npm 的注意事项,参考[DEVELOP.md](DEVELOP.md)。
14
+
15
+ ## License
16
+
17
17
  [MIT](LICENSE)
@@ -358,7 +358,9 @@ var egovaBI = function (globeMap, gisMap, mapType) {
358
358
  0.7: 'rgb(241,238,124)',
359
359
  1.0: 'rgb(243,118,116)',
360
360
  }),
361
-
361
+ //动态改变热力半径
362
+ dynamicRadius: defaultValue(heatOpt.dynamicRadius, undefined),
363
+ dynamicLevel: defaultValue(heatOpt.dynamicLevel, undefined),
362
364
  // 下面的部分不建议传,逐步舍弃
363
365
  gridSize: defaultValue(heatOpt.gridSize, null),
364
366
  blur: defaultValue(heatOpt.blur, 0.85),
@@ -1463,7 +1463,8 @@ var EGovaGISMap = function (
1463
1463
  infoCallback,
1464
1464
  updatePositionCallback,
1465
1465
  closeCallback,
1466
- traceDigCallback
1466
+ traceDigCallback,
1467
+ panelStyle
1467
1468
  ) {
1468
1469
  if (scene == null) return;
1469
1470
  var cb = function (type, data) {
@@ -1494,7 +1495,8 @@ var EGovaGISMap = function (
1494
1495
  hideControlPanel,
1495
1496
  symbolPic,
1496
1497
  optimizeParams,
1497
- cb
1498
+ cb,
1499
+ panelStyle
1498
1500
  );
1499
1501
  };
1500
1502
 
@@ -2353,9 +2353,9 @@ var EGovaMap = function (
2353
2353
  that.buffer = function (type, geometry, radius, callback) {
2354
2354
  if (scene == null) return;
2355
2355
  if (gisMap != null) {
2356
- return gisMap.buffer.apply(this, arguments);
2356
+ return gisMap.buffer.apply(this, arguments);
2357
2357
  }
2358
- }
2358
+ };
2359
2359
 
2360
2360
  /**
2361
2361
  * @param {*} points 点位坐标list,[[x,y],...]
@@ -2515,7 +2515,8 @@ var EGovaMap = function (
2515
2515
  infoCallback,
2516
2516
  updatePositionCallback,
2517
2517
  closeCallback,
2518
- traceDigCallback
2518
+ traceDigCallback,
2519
+ panelStyle
2519
2520
  ) {
2520
2521
  if (scene == null) return;
2521
2522
  if (gisMap != null && gisMap.gisVisible) {
@@ -3959,6 +3960,7 @@ var EGovaMap = function (
3959
3960
  endLevel: endLevel,
3960
3961
  };
3961
3962
  }
3963
+ option.cb = options.cb;
3962
3964
  if (globeMap != null) {
3963
3965
  globeMap.configServiceLayer(infoJson, option, layerName);
3964
3966
  }
@@ -5526,7 +5528,7 @@ var EGovaMap = function (
5526
5528
  gisMap.addMaskLayerV22(params);
5527
5529
  }
5528
5530
  };
5529
-
5531
+
5530
5532
  that.destroyMap = function () {
5531
5533
  if (scene == null) return;
5532
5534
  if (gisMap != null) {
@@ -5539,7 +5541,7 @@ var EGovaMap = function (
5539
5541
  if (gisMap != null) {
5540
5542
  gisMap.addPopupLayer(id, option);
5541
5543
  }
5542
- }
5544
+ };
5543
5545
 
5544
5546
  that.initMap(containerID, callback, mapType, mapConfig, mapParam);
5545
5547
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {