egovamap 0.19.7 → 0.19.9

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.
@@ -310,6 +310,14 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
310
310
  scene.fire(msgPrefix + ":removeWMSLayer", { args : [ serviceID ] }, parentScene, false);
311
311
  }
312
312
 
313
+ /*添加自定义WMS服务图层*/
314
+ that.addCustomWMSLayer = function(layerID, style, hStyle,where,outFields,visibleLevel,colorseparField,colorseparoptions) {
315
+ if (scene == null)
316
+ return;
317
+ scene.fire(msgPrefix + ":addCustomWMSLayer", { args : [ layerID, style, hStyle,where,outFields,visibleLevel,colorseparField,colorseparoptions ] }, parentScene, false);
318
+ }
319
+
320
+
313
321
 
314
322
  /*根据要素坐标定位显示要素*/
315
323
  that.locateFeatureByCoords=function(geometries, type, ID, style, hStyle, zoom, keyFiled, labelField, labelStyle, randomColor, renderCanvas, singleSelected, options, layerTag){
@@ -987,6 +987,11 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
987
987
  return;
988
988
  that.callMap('removeWMSLayerId', layerId, options);
989
989
  }
990
+ that.addCustomWMSLayer = function (layerID, style, hStyle,where,outFields,visibleLevel,colorseparField,colorseparoptions) {
991
+ if (scene == null)
992
+ return;
993
+ that.callMap('addCustomWMSLayer', layerID, style, hStyle,where,outFields,visibleLevel,colorseparField,colorseparoptions);
994
+ }
990
995
 
991
996
  /* 刷新图层目录树中图层 */
992
997
  that.refreshMapLayers = function () {
@@ -1876,7 +1881,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
1876
1881
  }
1877
1882
 
1878
1883
  that.addRadar = function(options){
1879
- that.callMap('addRadar', options.x, options.y, options.radius, options.symbolUrl);
1884
+ that.callMap('addRadar', options.x, options.y, options.radius, options.symbolUrl, options.speed);
1880
1885
  }
1881
1886
  /**
1882
1887
  * 设置基础图层透明度
@@ -3460,6 +3460,15 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
3460
3460
  gisMap.addWMSLayer(id, url, options);
3461
3461
  }
3462
3462
  }
3463
+
3464
+ //添加自定义WMS图层
3465
+ that.addCustomWMSLayer = function (layerID, style, hStyle,where,outFields,visibleLevel,colorseparField,colorseparoptions) {
3466
+ if (scene == null)
3467
+ return;
3468
+ if (gisMap != null) {
3469
+ gisMap.addCustomWMSLayer(layerID, style, hStyle,where,outFields,visibleLevel,colorseparField,colorseparoptions);
3470
+ }
3471
+ }
3463
3472
  /**
3464
3473
  * 添加WMTS图层
3465
3474
  * @param {String} id 图层id
@@ -1,5 +1,6 @@
1
1
  import CoordConvConfig from './coordconvert/CoordConvConfig';
2
- var coordConvert=require('egovacoordconvert/index');
2
+ import * as coordConvert from 'egovacoordconvert/build/dist/coordconvert';
3
+
3
4
  var MapUtils = {
4
5
  type: function (obj) {
5
6
  var result = Array.isArray(obj) ? 'array' : (typeof obj);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.19.7",
3
+ "version": "0.19.9",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {