xy-cesium3 0.0.26 → 0.0.27
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/package.json +1 -1
- package/xy-cesium3.es.js +12 -7
- package/xy-cesium3.umd.js +1 -1
package/package.json
CHANGED
package/xy-cesium3.es.js
CHANGED
|
@@ -4969,7 +4969,8 @@ const defaultOptions$2 = {
|
|
|
4969
4969
|
props: {
|
|
4970
4970
|
lglt: "lglt",
|
|
4971
4971
|
name: "name"
|
|
4972
|
-
}
|
|
4972
|
+
},
|
|
4973
|
+
isCustomColor: false
|
|
4973
4974
|
};
|
|
4974
4975
|
const addEntityPolygon = (viewer2, option) => {
|
|
4975
4976
|
let opt = Object.assign({}, defaultOptions$2, option);
|
|
@@ -4983,11 +4984,15 @@ const addEntityPolygon = (viewer2, option) => {
|
|
|
4983
4984
|
data.forEach((item) => {
|
|
4984
4985
|
let lglt = item[props.lglt].flat();
|
|
4985
4986
|
let polyline = null;
|
|
4986
|
-
|
|
4987
|
+
let pStyle = Object.assign({}, polygonStyle);
|
|
4988
|
+
if (opt.isCustomColor) {
|
|
4989
|
+
pStyle = Object.assign({}, pStyle, item);
|
|
4990
|
+
}
|
|
4991
|
+
if (!pStyle.extrudedHeight && pStyle.outline) {
|
|
4987
4992
|
polyline = {
|
|
4988
4993
|
positions: Cesium.Cartesian3.fromDegreesArray(lglt),
|
|
4989
|
-
width:
|
|
4990
|
-
material:
|
|
4994
|
+
width: pStyle.outlineWidth,
|
|
4995
|
+
material: pStyle.outlineColor,
|
|
4991
4996
|
arcType: Cesium.ArcType.RHUMB,
|
|
4992
4997
|
clampToGround: true
|
|
4993
4998
|
};
|
|
@@ -5000,7 +5005,7 @@ const addEntityPolygon = (viewer2, option) => {
|
|
|
5000
5005
|
material: Cesium.Color.RED,
|
|
5001
5006
|
clampToGround: true,
|
|
5002
5007
|
zIndex: 0
|
|
5003
|
-
},
|
|
5008
|
+
}, pStyle),
|
|
5004
5009
|
polyline,
|
|
5005
5010
|
label: labelStyle.show ? Object.assign({
|
|
5006
5011
|
text: item[props.name],
|
|
@@ -5511,8 +5516,8 @@ const loadTile3d = (viewer2, path, isView = true, option, heightOffset) => {
|
|
|
5511
5516
|
const opt = Object.assign(
|
|
5512
5517
|
{
|
|
5513
5518
|
maximumScreenSpaceError: 4,
|
|
5514
|
-
maximumNumberOfLoadedTiles:
|
|
5515
|
-
maximumMemoryUsage:
|
|
5519
|
+
maximumNumberOfLoadedTiles: 200,
|
|
5520
|
+
maximumMemoryUsage: 512,
|
|
5516
5521
|
loadSiblings: true
|
|
5517
5522
|
},
|
|
5518
5523
|
option
|