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-sketchtooltipoptions/m-p/1193247#M77959
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.html#tooltipOptions
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?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.