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
Use the container property to put it into a div
const sketch = new Sketch({ layer: layer, view: view, container: document.getElementById("myDiv") });<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Perfect! Thanks Ken.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.