egovamap 0.15.14 → 0.15.15
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/egovamap/egovagisviewer.js +31 -27
- package/egovamap/egovamap.js +10 -2
- package/package.json +1 -1
|
@@ -1785,48 +1785,52 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
1785
1785
|
};
|
|
1786
1786
|
that.callMap('getCenterPoint', polygon, cb);
|
|
1787
1787
|
}
|
|
1788
|
-
|
|
1789
|
-
|
|
1788
|
+
|
|
1789
|
+
/*设置图层显示与隐藏*/
|
|
1790
1790
|
that.setLayerVisible = function (name, visible) {
|
|
1791
1791
|
if (scene == null)
|
|
1792
1792
|
return;
|
|
1793
|
-
|
|
1793
|
+
|
|
1794
1794
|
that.callMap('setLayerVisible', name, visible);
|
|
1795
1795
|
}
|
|
1796
1796
|
|
|
1797
|
-
that.removeWMSLayer = function(layerName){
|
|
1797
|
+
that.removeWMSLayer = function (layerName) {
|
|
1798
1798
|
if (scene == null)
|
|
1799
1799
|
return;
|
|
1800
|
-
|
|
1800
|
+
|
|
1801
1801
|
that.callMap('removeWMSLayer', layerName);
|
|
1802
1802
|
}
|
|
1803
|
-
|
|
1804
|
-
that.getMainSubTypeTree = function (params, callback) {
|
|
1805
|
-
if (scene == null)
|
|
1806
|
-
return;
|
|
1807
|
-
var cb = function (type, data) {
|
|
1808
|
-
if (callback && type == 'getMainSubTypeTreeCallback') {
|
|
1809
|
-
callback(data);
|
|
1810
|
-
}
|
|
1811
|
-
};
|
|
1812
|
-
that.callMap('getMainSubTypeTree', params, cb);
|
|
1813
|
-
}
|
|
1814
1803
|
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1804
|
+
that.getMainSubTypeTree = function (params, callback) {
|
|
1805
|
+
if (scene == null)
|
|
1806
|
+
return;
|
|
1807
|
+
var cb = function (type, data) {
|
|
1808
|
+
if (callback && type == 'getMainSubTypeTreeCallback') {
|
|
1809
|
+
callback(data);
|
|
1810
|
+
}
|
|
1811
|
+
};
|
|
1812
|
+
that.callMap('getMainSubTypeTree', params, cb);
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
that.getRegion = function (params, callback) {
|
|
1816
|
+
if (scene == null)
|
|
1817
|
+
return;
|
|
1818
|
+
var cb = function (type, data) {
|
|
1819
|
+
if (callback && type == 'getRegionCallback') {
|
|
1820
|
+
callback(data);
|
|
1821
|
+
}
|
|
1822
|
+
};
|
|
1823
|
+
that.callMap('getRegion', params, cb);
|
|
1824
|
+
}
|
|
1825
1825
|
|
|
1826
|
-
that.getMapConfig = function(key, callback){
|
|
1826
|
+
that.getMapConfig = function (key, callback) {
|
|
1827
1827
|
that.callMap('getMapConfig', key, callback);
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
|
+
that.clearLayerSelectStyle = function (id, options) {
|
|
1831
|
+
that.callMap('clearLayerSelectStyle', id, options);
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1830
1834
|
that.init();
|
|
1831
1835
|
}
|
|
1832
1836
|
|
package/egovamap/egovamap.js
CHANGED
|
@@ -3729,10 +3729,10 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
3729
3729
|
}
|
|
3730
3730
|
|
|
3731
3731
|
//获取GIS配置
|
|
3732
|
-
that.getMapConfig = function(key, callback){
|
|
3732
|
+
that.getMapConfig = function (key, callback) {
|
|
3733
3733
|
if (scene == null)
|
|
3734
3734
|
return;
|
|
3735
|
-
if(globeMap != null) {
|
|
3735
|
+
if (globeMap != null) {
|
|
3736
3736
|
return globeMap.getMapConfig(key, callback)
|
|
3737
3737
|
}
|
|
3738
3738
|
if (gisMap != null) {
|
|
@@ -3740,6 +3740,14 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
3740
3740
|
}
|
|
3741
3741
|
}
|
|
3742
3742
|
|
|
3743
|
+
that.clearLayerSelectStyle = function (id, options) {
|
|
3744
|
+
if (scene == null)
|
|
3745
|
+
return;
|
|
3746
|
+
if (gisMap != null) {
|
|
3747
|
+
gisMap.clearLayerSelectStyle.apply(this, arguments);
|
|
3748
|
+
}
|
|
3749
|
+
}
|
|
3750
|
+
|
|
3743
3751
|
|
|
3744
3752
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
3745
3753
|
|