bruce-cesium 3.2.8 → 3.3.0

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.
@@ -3870,7 +3870,7 @@
3870
3870
  Point.CreateCircleBillboard = CreateCircleBillboard;
3871
3871
  function Render(params) {
3872
3872
  return __awaiter(this, void 0, void 0, function () {
3873
- var entity, style, type, cEntity, siblings, iconUrlRows, icon, iconUrl_1, res, blob_1, e_4, e_5, iconScale, disableDepthTest, heightRef, radius, bFill, cFill, outline, cOutline, outlineWidth, bOutline, heightRef, pos3d, extrusion, outlineExtrusion, bColor, cColor, size, heightRef, circleBillboard;
3873
+ var entity, style, type, cEntity, siblings, iconUrlRows, icon, iconUrl_1, res, blob_1, e_4, e_5, iconScale, disableDepthTest, bColor, cColor, heightRef, radius, bFill, cFill, outline, cOutline, outlineWidth, bOutline, heightRef, pos3d, extrusion, outlineExtrusion, bColor, cColor, size, heightRef, circleBillboard;
3874
3874
  return __generator(this, function (_a) {
3875
3875
  switch (_a.label) {
3876
3876
  case 0:
@@ -3960,6 +3960,8 @@
3960
3960
  }
3961
3961
  disableDepthTest = Boolean(style.renderOnTop);
3962
3962
  if (iconScale > 0) {
3963
+ bColor = style.iconTintColor ? bruceModels.Calculator.GetColor(style.iconTintColor, entity, params.tags) : null;
3964
+ cColor = bColor ? colorToCColor(bColor) : undefined;
3963
3965
  heightRef = getHeightRef(style);
3964
3966
  cEntity = new Cesium.Entity({
3965
3967
  id: bruceModels.ObjectUtils.UId(10),
@@ -3970,7 +3972,8 @@
3970
3972
  heightReference: getHeightRef(style),
3971
3973
  scale: iconScale,
3972
3974
  disableDepthTestDistance: disableDepthTest ? Number.POSITIVE_INFINITY : undefined,
3973
- distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
3975
+ distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
3976
+ color: cColor
3974
3977
  // Would be great once we have a setting for this.
3975
3978
  // translucencyByDistance: getTranslucencyByDistance(params.minDistance, params.maxDistance),
3976
3979
  },
@@ -19944,7 +19947,7 @@
19944
19947
  CesiumViewMonitor.Monitor = Monitor;
19945
19948
  })(exports.CesiumViewMonitor || (exports.CesiumViewMonitor = {}));
19946
19949
 
19947
- var VERSION$1 = "3.2.8";
19950
+ var VERSION$1 = "3.3.0";
19948
19951
 
19949
19952
  exports.VERSION = VERSION$1;
19950
19953
  exports.CesiumParabola = CesiumParabola;