Select to view content in your preferred language

Lasso / Rectangular Select event from Sketch Widget?

292
0
05-05-2023 12:04 PM
AndrewMurdoch1
Occasional Contributor II

Good Day

I have the Sketch Widget active on my map, and if I use the Draw tools, the "create" event will send a signal, and I can query the features without issue:

 

        sketchWidget.on("create", async (event) => {
          if (event.state === "complete") {
            this._view.graphics.removeAll();
            const geometries= this.sketchLayer.graphics.map((graphic) => {
              return graphic.geometry
            });
            const queryGeometry = await geometryEngineAsync.union(geometries.toArray());
            this.selectFeatures(queryGeometry);
          }
        });

 


When I use lasso or rectangle select tool, no signal is thrown, that I can find.  Oddly enough, if I use the "Select Feature" option, to select a single feature, the click handler on the view works fine.

What should I do, to get signals from the lasso and rectangle selection options?

Thanks

0 Kudos
0 Replies