egovamap 0.15.19 → 0.15.22
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/egovaBI.js +2 -1
- package/egovamap/egovagis.js +3 -3
- package/egovamap/egovagisviewer.js +1 -1
- package/egovamap/egovaglobe.js +120 -1
- package/egovamap/egovamap.js +167 -1
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -300,7 +300,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
300
300
|
}
|
|
301
301
|
return label;
|
|
302
302
|
};
|
|
303
|
-
this.drawParts = function (options, data) {
|
|
303
|
+
this.drawParts = function (options, data, callback) {
|
|
304
304
|
var self = this;
|
|
305
305
|
function showParts(data) {
|
|
306
306
|
var drawParam = options.drawParam || {};
|
|
@@ -366,6 +366,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
366
366
|
symbolUrl: symbolUrl,
|
|
367
367
|
});
|
|
368
368
|
}));
|
|
369
|
+
callback && callback(dataList);
|
|
369
370
|
showParts(dataList);
|
|
370
371
|
};
|
|
371
372
|
if (gisMap) {
|
package/egovamap/egovagis.js
CHANGED
|
@@ -631,7 +631,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
|
|
|
631
631
|
that.locateFeatureByIDs(layerID, layerKeyFieldName, cellID, bClearMap, gridCellStyle.style, gridCellStyle.hStyle, zoom);
|
|
632
632
|
}
|
|
633
633
|
/* 标识位置 */
|
|
634
|
-
that.markMap = function(projectTypeID, eventTypeID, actPropertyID, displayStyleID, layerID, clickCallback, cellIndexName,point) {
|
|
634
|
+
that.markMap = function(projectTypeID, eventTypeID, actPropertyID, displayStyleID, layerID, clickCallback, cellIndexName,point,symbolUrl) {
|
|
635
635
|
if (scene == null)
|
|
636
636
|
return;
|
|
637
637
|
|
|
@@ -650,8 +650,8 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
|
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
scene.fire(msgPrefix + ":markMap", {
|
|
653
|
-
args : [ projectTypeID, eventTypeID, actPropertyID, displayStyleID, layerID, cellIndexName,point]
|
|
654
|
-
|
|
653
|
+
args : [ projectTypeID, eventTypeID, actPropertyID, displayStyleID, layerID, cellIndexName,point, symbolUrl]
|
|
654
|
+
}, parentScene, false);
|
|
655
655
|
}
|
|
656
656
|
/* 案件定位 */
|
|
657
657
|
that.eventLocate = that.recLocate = function(eventID, defaultMapRange) {
|
|
@@ -928,7 +928,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
928
928
|
that.callMap('locateFeatureByIDs', layerID, layerKeyFieldName, cellID, bClearMap, gridCellStyle.style, gridCellStyle.hStyle, zoom);
|
|
929
929
|
}
|
|
930
930
|
/* 标识位置 */
|
|
931
|
-
that.markMap = function (projectTypeID, eventTypeID, actPropertyID, displayStyleID, layerID, clickCallback, cellIndexName, point,
|
|
931
|
+
that.markMap = function (projectTypeID, eventTypeID, actPropertyID, displayStyleID, layerID, clickCallback, cellIndexName, point, symbolUrl) {
|
|
932
932
|
if (scene == null)
|
|
933
933
|
return;
|
|
934
934
|
|
package/egovamap/egovaglobe.js
CHANGED
|
@@ -1945,7 +1945,126 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
|
|
|
1945
1945
|
return;
|
|
1946
1946
|
scene.fire((msgPrefix + ":getPointInfo"), { args: [options] }, parentScene, false);
|
|
1947
1947
|
};
|
|
1948
|
-
|
|
1948
|
+
//添加聚类图层
|
|
1949
|
+
that.addClusterLayerCIM = function(dataInfo, option) {
|
|
1950
|
+
if (scene == null)
|
|
1951
|
+
return;
|
|
1952
|
+
scene.fire((msgPrefix + ":addClusterLayer"), { args: [dataInfo, option] }, parentScene, false);
|
|
1953
|
+
};
|
|
1954
|
+
//可视域分析
|
|
1955
|
+
that.startViewer = function(options) {
|
|
1956
|
+
if (scene == null)
|
|
1957
|
+
return;
|
|
1958
|
+
scene.fire((msgPrefix + ":startViewer"), { args: [options] }, parentScene, false);
|
|
1959
|
+
};
|
|
1960
|
+
that.removeViewer = function() {
|
|
1961
|
+
if (scene == null)
|
|
1962
|
+
return;
|
|
1963
|
+
scene.fire((msgPrefix + ":removeViewer"), { args: [] }, parentScene, false);
|
|
1964
|
+
};
|
|
1965
|
+
that.setViewerOptions = function(options) {
|
|
1966
|
+
if (scene == null)
|
|
1967
|
+
return;
|
|
1968
|
+
scene.fire((msgPrefix + ":setViewerOptions"), { args: [options] }, parentScene, false);
|
|
1969
|
+
};
|
|
1970
|
+
that.showSkyLine = function(options) {
|
|
1971
|
+
if (scene == null)
|
|
1972
|
+
return;
|
|
1973
|
+
scene.fire((msgPrefix + ":showSkyLine"), { args: [options] }, parentScene, false);
|
|
1974
|
+
};
|
|
1975
|
+
that.clearSkyLine = function() {
|
|
1976
|
+
if (scene == null)
|
|
1977
|
+
return;
|
|
1978
|
+
scene.fire((msgPrefix + ":clearSkyLine"), { args: [] }, parentScene, false);
|
|
1979
|
+
};
|
|
1980
|
+
that.setLineOptions = function(options) {
|
|
1981
|
+
if (scene == null)
|
|
1982
|
+
return;
|
|
1983
|
+
scene.fire((msgPrefix + ":setLineOptions"), { args: [options] }, parentScene, false);
|
|
1984
|
+
};
|
|
1985
|
+
that.bufferAnalysis = function(options,clear,update) {
|
|
1986
|
+
if (scene == null)
|
|
1987
|
+
return;
|
|
1988
|
+
scene.fire((msgPrefix + ":bufferAnalysis"), { args: [options,clear,update] }, parentScene, false);
|
|
1989
|
+
};
|
|
1990
|
+
that.clearBufferAnalysis = function(options) {
|
|
1991
|
+
if (scene == null)
|
|
1992
|
+
return;
|
|
1993
|
+
scene.fire((msgPrefix + ":clearBufferAnalysis"), { args: [] }, parentScene, false);
|
|
1994
|
+
};
|
|
1995
|
+
that.addModelClickEvent = function(callback) {
|
|
1996
|
+
if (scene == null)
|
|
1997
|
+
return;
|
|
1998
|
+
scene.fire((msgPrefix + ":addModelClickEvent"), { args: [callback] }, parentScene, false);
|
|
1999
|
+
};
|
|
2000
|
+
that.removeModelClickEvent = function() {
|
|
2001
|
+
if (scene == null)
|
|
2002
|
+
return;
|
|
2003
|
+
scene.fire((msgPrefix + ":removeModelClickEvent"), { args: [] }, parentScene, false);
|
|
2004
|
+
};
|
|
2005
|
+
that.getBIMTree = function(option, callback) {
|
|
2006
|
+
if (scene == null)
|
|
2007
|
+
return;
|
|
2008
|
+
scene.fire((msgPrefix + ":getBIMTree"), { args: [option, callback] }, parentScene, false);
|
|
2009
|
+
};
|
|
2010
|
+
that.setBIMTree = function(option) {
|
|
2011
|
+
if (scene == null)
|
|
2012
|
+
return;
|
|
2013
|
+
scene.fire((msgPrefix + ":setBIMTree"), { args: [option] }, parentScene, false);
|
|
2014
|
+
};
|
|
2015
|
+
that.clearBimSelect = function() {
|
|
2016
|
+
if (scene == null)
|
|
2017
|
+
return;
|
|
2018
|
+
scene.fire((msgPrefix + ":clearBimSelect"), { args: [] }, parentScene, false);
|
|
2019
|
+
};
|
|
2020
|
+
that.visibilityAnalysis = function(type) {
|
|
2021
|
+
if (scene == null)
|
|
2022
|
+
return;
|
|
2023
|
+
scene.fire((msgPrefix + ":visibilityAnalysis"), { args: [type] }, parentScene, false);
|
|
2024
|
+
};
|
|
2025
|
+
that.clearVisibilityAnalysis = function() {
|
|
2026
|
+
if (scene == null)
|
|
2027
|
+
return;
|
|
2028
|
+
scene.fire((msgPrefix + ":clearVisibilityAnalysis"), { args: [] }, parentScene, false);
|
|
2029
|
+
};
|
|
2030
|
+
that.addCIMTerrain = function(options) {
|
|
2031
|
+
if (scene == null)
|
|
2032
|
+
return;
|
|
2033
|
+
scene.fire((msgPrefix + ":addCIMTerrain"), { args: [options] }, parentScene, false);
|
|
2034
|
+
};
|
|
2035
|
+
that.flytoPosition = function(lon, lat, height) {
|
|
2036
|
+
if (scene == null)
|
|
2037
|
+
return;
|
|
2038
|
+
scene.fire((msgPrefix + ":flytoPosition"), { args: [lon, lat, height] }, parentScene, false);
|
|
2039
|
+
};
|
|
2040
|
+
//开启日照分析
|
|
2041
|
+
that.openSunshineAnalysis = function() {
|
|
2042
|
+
if (scene == null)
|
|
2043
|
+
return;
|
|
2044
|
+
scene.fire((msgPrefix + ":openSunshineAnalysis"), { args: [] }, parentScene, false);
|
|
2045
|
+
};
|
|
2046
|
+
that.sunshineAnalysis = function(date) {
|
|
2047
|
+
if (scene == null)
|
|
2048
|
+
return;
|
|
2049
|
+
scene.fire((msgPrefix + ":sunshineAnalysis"), { args: [date] }, parentScene, false);
|
|
2050
|
+
};
|
|
2051
|
+
that.closeSunshineAnalysis = function() {
|
|
2052
|
+
if (scene == null)
|
|
2053
|
+
return;
|
|
2054
|
+
scene.fire((msgPrefix + ":closeSunshineAnalysis"), { args: [] }, parentScene, false);
|
|
2055
|
+
};
|
|
2056
|
+
//设置天气
|
|
2057
|
+
that.setViewConfig = function(type, options) {
|
|
2058
|
+
if (scene == null)
|
|
2059
|
+
return;
|
|
2060
|
+
scene.fire((msgPrefix + ":setViewConfig"), { args: [type, options] }, parentScene, false);
|
|
2061
|
+
};
|
|
2062
|
+
//管网高亮显示
|
|
2063
|
+
that.searchAndShowPipe = function(url, options, color, clear) {
|
|
2064
|
+
if (scene == null)
|
|
2065
|
+
return;
|
|
2066
|
+
scene.fire((msgPrefix + ":searchAndShowPipe"), { args: [url, options, color, clear] }, parentScene, false);
|
|
2067
|
+
};
|
|
1949
2068
|
that.init();
|
|
1950
2069
|
};
|
|
1951
2070
|
|
package/egovamap/egovamap.js
CHANGED
|
@@ -1822,7 +1822,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
1822
1822
|
}
|
|
1823
1823
|
|
|
1824
1824
|
/* 标识位置 */
|
|
1825
|
-
that.markMap = function (projectTypeID, eventTypeID, actPropertyID, displayStyleID, layerID, clickCallback, cellIndexName, point) {
|
|
1825
|
+
that.markMap = function (projectTypeID, eventTypeID, actPropertyID, displayStyleID, layerID, clickCallback, cellIndexName, point, symbolUrl) {
|
|
1826
1826
|
if (scene == null)
|
|
1827
1827
|
return;
|
|
1828
1828
|
if (gisMap != null && gisMap.gisVisible) {
|
|
@@ -3855,7 +3855,173 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
3855
3855
|
globeMap.getPointInfo(options);
|
|
3856
3856
|
}
|
|
3857
3857
|
};
|
|
3858
|
+
/* 聚类 */
|
|
3859
|
+
that.addClusterLayerCIM = function(dataInfo, option) {
|
|
3860
|
+
if (scene == null)
|
|
3861
|
+
return;
|
|
3858
3862
|
|
|
3863
|
+
if (globeMap != null) {
|
|
3864
|
+
globeMap.addClusterLayerCIM(dataInfo, option);
|
|
3865
|
+
}
|
|
3866
|
+
};
|
|
3867
|
+
//可视域分析
|
|
3868
|
+
that.startViewer = function(options) {
|
|
3869
|
+
if (scene == null)
|
|
3870
|
+
return;
|
|
3871
|
+
if (globeMap != null) {
|
|
3872
|
+
globeMap.startViewer(options);
|
|
3873
|
+
}
|
|
3874
|
+
};
|
|
3875
|
+
that.removeViewer = function() {
|
|
3876
|
+
if (scene == null)
|
|
3877
|
+
return;
|
|
3878
|
+
if (globeMap != null) {
|
|
3879
|
+
globeMap.removeViewer();
|
|
3880
|
+
}
|
|
3881
|
+
};
|
|
3882
|
+
that.setViewerOptions = function(options) {
|
|
3883
|
+
if (scene == null)
|
|
3884
|
+
return;
|
|
3885
|
+
if (globeMap != null) {
|
|
3886
|
+
globeMap.setViewerOptions(options);
|
|
3887
|
+
}
|
|
3888
|
+
};
|
|
3889
|
+
that.showSkyLine = function(options) {
|
|
3890
|
+
if (scene == null)
|
|
3891
|
+
return;
|
|
3892
|
+
if (globeMap != null) {
|
|
3893
|
+
globeMap.showSkyLine(options);
|
|
3894
|
+
}
|
|
3895
|
+
};
|
|
3896
|
+
that.clearSkyLine = function() {
|
|
3897
|
+
if (scene == null)
|
|
3898
|
+
return;
|
|
3899
|
+
if (globeMap != null) {
|
|
3900
|
+
globeMap.clearSkyLine();
|
|
3901
|
+
}
|
|
3902
|
+
};
|
|
3903
|
+
that.setLineOptions = function(options) {
|
|
3904
|
+
if (scene == null)
|
|
3905
|
+
return;
|
|
3906
|
+
if (globeMap != null) {
|
|
3907
|
+
globeMap.setLineOptions(options);
|
|
3908
|
+
}
|
|
3909
|
+
};
|
|
3910
|
+
that.bufferAnalysis = function(options,clear,update) {
|
|
3911
|
+
if (scene == null)
|
|
3912
|
+
return;
|
|
3913
|
+
if (globeMap != null) {
|
|
3914
|
+
globeMap.bufferAnalysis(options,clear,update);
|
|
3915
|
+
}
|
|
3916
|
+
};
|
|
3917
|
+
that.clearBufferAnalysis = function() {
|
|
3918
|
+
if (scene == null)
|
|
3919
|
+
return;
|
|
3920
|
+
if (globeMap != null) {
|
|
3921
|
+
globeMap.clearBufferAnalysis();
|
|
3922
|
+
}
|
|
3923
|
+
};
|
|
3924
|
+
that.addModelClickEvent = function(callback) {
|
|
3925
|
+
if (scene == null)
|
|
3926
|
+
return;
|
|
3927
|
+
if (globeMap != null) {
|
|
3928
|
+
globeMap.addModelClickEvent(callback);
|
|
3929
|
+
}
|
|
3930
|
+
};
|
|
3931
|
+
that.removeModelClickEvent = function() {
|
|
3932
|
+
if (scene == null)
|
|
3933
|
+
return;
|
|
3934
|
+
if (globeMap != null) {
|
|
3935
|
+
globeMap.removeModelClickEvent();
|
|
3936
|
+
}
|
|
3937
|
+
};
|
|
3938
|
+
that.getBIMTree = function(options, callback) {
|
|
3939
|
+
if (scene == null)
|
|
3940
|
+
return;
|
|
3941
|
+
if (globeMap != null) {
|
|
3942
|
+
globeMap.getBIMTree(options, callback);
|
|
3943
|
+
}
|
|
3944
|
+
};
|
|
3945
|
+
that.setBIMTree = function(options) {
|
|
3946
|
+
if (scene == null)
|
|
3947
|
+
return;
|
|
3948
|
+
if (globeMap != null) {
|
|
3949
|
+
globeMap.setBIMTree(options);
|
|
3950
|
+
}
|
|
3951
|
+
};
|
|
3952
|
+
that.clearBimSelect = function() {
|
|
3953
|
+
if (scene == null)
|
|
3954
|
+
return;
|
|
3955
|
+
if (globeMap != null) {
|
|
3956
|
+
globeMap.clearBimSelect();
|
|
3957
|
+
}
|
|
3958
|
+
};
|
|
3959
|
+
that.visibilityAnalysis = function(type) {
|
|
3960
|
+
if (scene == null)
|
|
3961
|
+
return;
|
|
3962
|
+
if (globeMap != null) {
|
|
3963
|
+
globeMap.visibilityAnalysis(type);
|
|
3964
|
+
}
|
|
3965
|
+
};
|
|
3966
|
+
that.clearVisibilityAnalysis = function() {
|
|
3967
|
+
if (scene == null)
|
|
3968
|
+
return;
|
|
3969
|
+
if (globeMap != null) {
|
|
3970
|
+
globeMap.clearVisibilityAnalysis();
|
|
3971
|
+
}
|
|
3972
|
+
};
|
|
3973
|
+
that.addCIMTerrain = function(options) {
|
|
3974
|
+
if (scene == null)
|
|
3975
|
+
return;
|
|
3976
|
+
if (globeMap != null) {
|
|
3977
|
+
globeMap.addCIMTerrain(options);
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
that.flytoPosition = function(lon, lat, height) {
|
|
3981
|
+
if (scene == null)
|
|
3982
|
+
return;
|
|
3983
|
+
if (globeMap != null) {
|
|
3984
|
+
globeMap.flytoPosition(lon, lat, height);
|
|
3985
|
+
}
|
|
3986
|
+
};
|
|
3987
|
+
//开启日照分析
|
|
3988
|
+
that.openSunshineAnalysis = function() {
|
|
3989
|
+
if (scene == null)
|
|
3990
|
+
return;
|
|
3991
|
+
if (globeMap != null) {
|
|
3992
|
+
globeMap.openSunshineAnalysis();
|
|
3993
|
+
}
|
|
3994
|
+
};
|
|
3995
|
+
that.sunshineAnalysis = function(date) {
|
|
3996
|
+
if (scene == null)
|
|
3997
|
+
return;
|
|
3998
|
+
if (globeMap != null) {
|
|
3999
|
+
globeMap.sunshineAnalysis(date);
|
|
4000
|
+
}
|
|
4001
|
+
};
|
|
4002
|
+
that.closeSunshineAnalysis = function() {
|
|
4003
|
+
if (scene == null)
|
|
4004
|
+
return;
|
|
4005
|
+
if (globeMap != null) {
|
|
4006
|
+
globeMap.closeSunshineAnalysis();
|
|
4007
|
+
}
|
|
4008
|
+
};
|
|
4009
|
+
//设置天气
|
|
4010
|
+
that.setViewConfig = function(type, options) {
|
|
4011
|
+
if (scene == null)
|
|
4012
|
+
return;
|
|
4013
|
+
if (globeMap != null) {
|
|
4014
|
+
globeMap.setViewConfig(type, options);
|
|
4015
|
+
}
|
|
4016
|
+
};
|
|
4017
|
+
//管网高亮显示
|
|
4018
|
+
that.searchAndShowPipe = function(url, options, color, clear) {
|
|
4019
|
+
if (scene == null)
|
|
4020
|
+
return;
|
|
4021
|
+
if (globeMap != null) {
|
|
4022
|
+
globeMap.searchAndShowPipe(url, options, color, clear);
|
|
4023
|
+
}
|
|
4024
|
+
};
|
|
3859
4025
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
3860
4026
|
|
|
3861
4027
|
// EGovaBI(globeMap).bind(this)();
|