SketchViewModel - tooltipOptions related documentation

277
1
05-25-2023 08:39 AM
BhavinSanghani
Occasional Contributor II

 

I came across the following thread and it seems tooltipOptions related to 2D MapView was planned in 4.25 as per @HeatherGonzago.

https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchlabeloptions-and-sketchtool... 

The way @SumitZarkarCT has added the following code in this thread, it works fine with SketchViewModel. 

Is there a way to hide Total length related text? I don't see visibleElements property related specification in the SDK documentation.

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.ht...

 

0 Kudos
1 Reply
BhavinSanghani
Occasional Contributor II

Never mind, I found it by looking at tootipOptions in the debug mode to say totalLength: false. However, it seems the documentation of visibleElements property is missing. 

In addition, I see there are few issues as well.

1) tooltip doesn't display if the activeTool is 'rectangle' or 'circle' or 'point' or 'multipoint'. 

2) tooltip text is wrong if the mode: 'freehand' is selected. It displays 'Click on the map to start drawing'. However, it needs to be dragged to start drawing in this mode. Similar way, it's wrong tooltip text while ending the drawing in this mode. 

Can anyone from ESRI confirm if these are already known bugs or any workarounds?