AnsweredAssumed Answered

How can I change the title attribute of the locate widget?

Question asked by Jefairfi on May 31, 2017
Latest reply on Jun 5, 2017 by Jefairfi

In the 4.x api, I want to change the title attribute of the dom element in the locate widget.  The default value is "Default map view" which sounds misleading to the user.

I was thinking of using jquery to target the "esri-locate" and "esri-icon-locate" classes like this:

$(".esri-locate, .esri-icon-locate").prop('title', 'your new title');

This works when I run it in the console, but I can't figure out in which event I should put this to make sure the dom element is available.  Any help would be appreciated.

 

arcgis api for javascript 4 widget location event listener widget configuration

Outcomes