egovamap 0.33.33 → 0.33.35

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)
@@ -1589,6 +1589,12 @@ var egovaBI = function (globeMap, gisMap, mapType) {
1589
1589
  globeMap.addDock(options);
1590
1590
  }
1591
1591
  };
1592
+ // webgl十字聚焦特效
1593
+ this.lockOnPoint = function (options) {
1594
+ if (globeMap !== null && mapType === 'globe') {
1595
+ globeMap.lockOnPoint(options);
1596
+ }
1597
+ };
1592
1598
  };
1593
1599
 
1594
1600
  export default egovaBI;
@@ -2133,12 +2133,15 @@ var EGovaGlobeMap = function (
2133
2133
  resultPosition.push(position.args[0]);
2134
2134
  clickCallback(resultPosition);
2135
2135
  });
2136
- } else if (clickCallback && typeof clickCallback.clickCallback === 'function') {
2136
+ } else if (
2137
+ clickCallback &&
2138
+ typeof clickCallback.clickCallback === 'function'
2139
+ ) {
2137
2140
  that.bindEvent('pointSelectCallback', function (position) {
2138
2141
  if (!clickCallback.keep) {
2139
2142
  that.removeEventBind('pointSelectCallback');
2140
2143
  }
2141
- });
2144
+ });
2142
2145
  }
2143
2146
  scene.fire(
2144
2147
  msgPrefix + ':pointSelect',
@@ -3730,6 +3733,15 @@ var EGovaGlobeMap = function (
3730
3733
  false
3731
3734
  );
3732
3735
  };
3736
+ that.lockOnPoint = function (options) {
3737
+ if (scene === null) return;
3738
+ scene.fire(
3739
+ msgPrefix + ':lockOnPoint',
3740
+ { args: [options] },
3741
+ parentScene,
3742
+ false
3743
+ );
3744
+ };
3733
3745
  that.init();
3734
3746
  };
3735
3747
 
@@ -5599,6 +5599,7 @@ var EGovaMapUtils = {
5599
5599
  if (mapList[uniqueID]) {
5600
5600
  for (var i = mapArray.length - 1; i >= 0; i--) {
5601
5601
  if (mapArray[i] === mapList[uniqueID]) {
5602
+ mapArray[i].destroyMap();
5602
5603
  delete mapArray[i];
5603
5604
  break;
5604
5605
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.33.33",
3
+ "version": "0.33.35",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {