3.x to 4.x migration pains- Can you place the sketch widget in a div located outside of the map? I'm developing an app which uses an AccordionPane to define a workflow and one step is to draw a graphic and I'd like to place the widget in one of the AccordionPanes. The Sketch widget sample uses "view.ui.add()" to place the sketch widget into the map but I don't see another way to specify where the widget is placed.
Thanks!
Steve
Solved! Go to Solution.
Use the container property to put it into a div
const sketch = new Sketch({
layer: layer,
view: view,
container: document.getElementById("myDiv")
});
Use the container property to put it into a div
const sketch = new Sketch({
layer: layer,
view: view,
container: document.getElementById("myDiv")
});
Perfect! Thanks Ken.