Hello,
I just upgrades from 4.11 to 4.18 and i got an issue that a cannot figured how to resolve.
I can reproduce it by two different ways:
this.sketch = new Sketch({
layer: this.sketchLayer,
view: this.view,
creationMode: 'single',
});
this.sketch.create('polygon');
const widget = new DistanceMeasurement2D({ view: this.props.view });
widget.viewModel.unit = this.state.currentMeasurementUnit;
widget.viewModel.mode = 'geodesic';
widget.viewModel.newMeasurement();
Uncaught (in promise) TypeError: Cannot read property 'items' of null
at g.P._getGraphicsToUpdate (mapViewDeps.js:685)
at g.P._updateGraphics (mapViewDeps.js:686)
at g.P._updateGraphics (mapViewDeps.js:689)
Any idea how i can fix it?
Thanks
Jerome
Hello,
Would you be able to provide a reproducible codepen?
I tried the workflow with the Sketch widget you provided, and could not reproduce the issue in 4.18.
Take a look at this codepen:
https://codepen.io/banuelosj/pen/QWdmEMb?editors=1000