Rendering networks on terrain surface & controlling point geometry symbology in iTwin.js #8582
Replies: 1 comment 1 reply
-
Hi @GediminasSeib, In what coordinate system is your geometry defined? Is it in ECEF, accounting for the curvature of the Earth? Or, is it in some arbitrary cartesian coordinate system where Z is assumed to correspond to ground level everywhere? If the latter, does your iModel define a geographic coordinate system to allow us to project your geometry onto the globe? If you disable terrain and the globe by setting GlobeMode.Plane to make the background map flat, does the geometry align better? We don't currently support custom marker symbols for point geometry. You could write a FeatureOverrideProvider that dynamically adjusts the point size override based on the current zoom level. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve been working with network geometry that spans around 1000s of km2, represented in the iModel using
GeometricElement3d
. I have two questions regarding how iTwin.js handles geometry rendering and symbology:Rendering Networks on Terrain Surface
Our network nodes and links currently don’t have Z values. And in the iTwin viewer (even with the terrain off) the geometry appears below the map. The vertical offset is small at the center of the model but increases toward the edges.
Controlling Symbology for Point Geometries
For nodes with point geometry, I’ve found that it’s possible to change their weight. However, setting a fixed size doesn’t scale well when zooming in and out.
Any guidance, examples, or references to relevant APIs would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions