Hi - is there any way to change the initial display for the Distance Measurement 2D Component to use an icon (like the default calcite measure-line icon) instead of the large button labeled 'New Measurement'? I've tried specifying the icon in the html markup like below, but I still get the 'New Measurement' button on my map. The map on my application is fairly small so I don't have a lot of real estate for the big button
Solved! Go to Solution.
That icon property just controls the icon when the component is inside an expand component. It doesn’t affect the new measurement button.
I see that the Distance Measurement 2D widget has not been deprecated yet: https://developers.arcgis.com/javascript/latest/components-transition-plan/
maybe this is why the icon property isnt working for the component?
Pete
That icon property just controls the icon when the component is inside an expand component. It doesn’t affect the new measurement button.
Thanks Justin - so it sounds like I just need to put the meas tool inside an expand component to get the behavior I want