Thanks for the reply. If you mean I should report the sketch widget issue I was told there's already an issue open in this thread: https://community.esri.com/thread/241160-drawing-graphics-in-3d-scene-over-180th-meridian.
I'm a little confused by normalizeUtils. I copied the example from your link almost exactly and it's resolving to a geometry with the exact same non-normalized paths. Code below.
const polyline = new Polyline({
paths: [
[140, 52.68],
[220, 49.5]
]
});
const cruiseTrajectorySymbol = {
type: 'line-3d',
symbolLayers: [{
type: 'line',
material: { color: [255, 128, 0, 1] },
cap: 'round',
join: 'round',
size: 2
}]
}
let a = this;
normalizeUtils.normalizeCentralMeridian([polyline])
.then(function(polylines){
console.log(polylines);
// this promise seems to be resolving to the exact same Polyline I put into it
// 0:
// cache: (...)
// extent: (...)
// hasM: (...)
// hasZ: (...)
// paths: Array(1)
// 0: Array(2)
// 0: (2) [140, 52.68]
// 1: (2) [220, 49.5]
const graphic = new esriModules.Graphic({
geometry: polylines[0],
symbol: cruiseTrajectorySymbol
});
a.regionLayer.add(graphic);
})