Select to view content in your preferred language

Help with Sketch Widget Tooltip Units

274
1
05-15-2024 07:25 AM
FlockSafety
Emerging Contributor

Hello,

I would like to change the units displayed on the Sketch widget tooltip from meters to miles. I combed through the documentation and couldn't find any way to configure this. Our application stores the distance and area (plus the units) in miles, but we are having trouble displaying the built-in measurement while drawing in miles.

The tooltip in the screenshot is displayed using the "tooltipOptions={{ enabled: true }}" parameter for the Sketch Widget

The only alternative I found was to make a TextSymbol located at the centroid lat/lng of the polygon. But this felt clunky to implement given there is already a dynamic tooltip in the SDK.

 

FlockSafety_0-1715783067466.png

 

1 Reply
AlexQuintero1
Occasional Contributor

I am running into the same issue. Doesn't appear that it can be changed.

0 Kudos