bruce-cesium 2.6.1 → 2.6.2
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/dist/bruce-cesium.es5.js +13 -5
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +12 -4
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine.js +12 -4
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -1860,6 +1860,7 @@
|
|
|
1860
1860
|
return __generator(this, function (_j) {
|
|
1861
1861
|
switch (_j.label) {
|
|
1862
1862
|
case 0:
|
|
1863
|
+
console.log("Rendering entities", params);
|
|
1863
1864
|
groupRenderParams = {
|
|
1864
1865
|
apiGetter: params.apiGetter,
|
|
1865
1866
|
viewer: params.viewer,
|
|
@@ -2111,7 +2112,7 @@
|
|
|
2111
2112
|
(function (Point) {
|
|
2112
2113
|
function Render(params) {
|
|
2113
2114
|
return __awaiter(this, void 0, void 0, function () {
|
|
2114
|
-
var entity, style, type, cEntity, siblings, iconUrlRows, icon, iconUrl, res, e_4, iconScale, disableDepthTest, heightRef, radius, bFill, cFill, outline, bOutline, cOutline, outlineWidth, outlineHeight, fillHeight, pos, bColor, cColor, size, heightRef;
|
|
2115
|
+
var entity, style, type, cEntity, siblings, iconUrlRows, icon, iconUrl, res, e_4, iconScale, disableDepthTest, heightRef, radius, bFill, cFill, outline, bOutline, cOutline, outlineWidth, outlineHeight, fillHeight, pos, cartographicPosition, bColor, cColor, size, heightRef;
|
|
2115
2116
|
return __generator(this, function (_a) {
|
|
2116
2117
|
switch (_a.label) {
|
|
2117
2118
|
case 0:
|
|
@@ -2216,11 +2217,17 @@
|
|
|
2216
2217
|
pos = exports.EntityUtils.GetPos({
|
|
2217
2218
|
viewer: params.viewer,
|
|
2218
2219
|
entity: entity,
|
|
2219
|
-
recordHeightRef: Cesium.HeightReference.
|
|
2220
|
+
recordHeightRef: Cesium.HeightReference.RELATIVE_TO_GROUND,
|
|
2220
2221
|
returnHeightRef: Cesium.HeightReference.RELATIVE_TO_GROUND
|
|
2221
2222
|
});
|
|
2223
|
+
// Adjust the position to consider half the height of the cylinder
|
|
2224
|
+
if (pos) {
|
|
2225
|
+
cartographicPosition = Cesium.Cartographic.fromCartesian(pos);
|
|
2226
|
+
cartographicPosition.height += fillHeight / 2;
|
|
2227
|
+
pos = Cesium.Cartographic.toCartesian(cartographicPosition);
|
|
2228
|
+
}
|
|
2222
2229
|
cEntity = new Cesium.Entity({
|
|
2223
|
-
position: pos
|
|
2230
|
+
position: pos,
|
|
2224
2231
|
cylinder: {
|
|
2225
2232
|
length: fillHeight,
|
|
2226
2233
|
topRadius: radius,
|
|
@@ -2231,7 +2238,6 @@
|
|
|
2231
2238
|
outlineWidth: outlineWidth
|
|
2232
2239
|
}
|
|
2233
2240
|
});
|
|
2234
|
-
// Here you can add additional logic if you need more customization for the cylinder
|
|
2235
2241
|
}
|
|
2236
2242
|
if (!cEntity) {
|
|
2237
2243
|
bColor = style.color ? bruceModels.Calculator.GetColor(style.color, entity, params.tags) : null;
|
|
@@ -2260,6 +2266,8 @@
|
|
|
2260
2266
|
}),
|
|
2261
2267
|
show: true
|
|
2262
2268
|
});
|
|
2269
|
+
console.log("Created point", cEntity);
|
|
2270
|
+
debugger;
|
|
2263
2271
|
}
|
|
2264
2272
|
if (cEntity) {
|
|
2265
2273
|
cEntity._siblingGraphics = siblings;
|