I am using the Measure Widget. I want the line tool selected when the widget is started. That way a user can start measuring directly without extra clicks. Tom Sellsted
Is there any code that I can change to do this?
Measure Widget 1.3.1 for Web App Builder
Thanks!
Solved! Go to Solution.
Rickey,
Success! In the measure/widget.js you just need to add a single line of code in the postCreate function.
this.drawBox.activate("LINE");
Regards,
Tom
Rickey,
Not sure I have an easy answer for this. I will investigate.
Regards,
Tom
Rickey,
Success! In the measure/widget.js you just need to add a single line of code in the postCreate function.
this.drawBox.activate("LINE");
Regards,
Tom
Tom,
This is perfect!!!
I have one more request. For some reason, it does not include the text now. Is there another line I can add or change?
Rickey,
Is this in WAB 2.0? Which browser are you using?
Regards,
Tom
Tom,
Yes this is WAB 2.0. This happens in both chrome and Firefox.
Rickey,
I am not seeing this behavior. What theme are you using?
Regards,
Tom
I am using Launchpad theme.
Its only the first line I draw that does not have the length.
EDIT:
I have now tried it with Billboard theme and I am still getting the same issue.
Rickey,
Can you please try moving the line of code that I provided to the last line in the postCreate function? I was able to replicate the problem.
Regards,
Tom
That did it! Thanks!