Esri / feedback-js-api-next

Try out the next release of the ArcGIS Maps SDK for JavaScript and share your feedback. Be warned: this release is still in development and is unstable.
87 stars 22 forks source link

Bug: Measurement widget renders an empty div in expand widget #15

Closed green3g closed 4 years ago

green3g commented 4 years ago

Describe the bug Instead of rendering the measurement widget, an empty div is rendered inside an expand widget.

To Reproduce https://codepen.io/roemhildtg/pen/zYYWzeq?editors=1000

Expected behavior Expand widget should render the measurement widget.

Screenshots image

Browser (check https://whatismybrowser.com/) Firefox 70

What's your OS? (check https://whatsmyos.com): Windows 10

API version (check your console) 4.13-next

RalucaNicola commented 4 years ago

The div is empty because for the Measurement widget you need to build and configure the UI yourself. See this sample on how to use it: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=widgets-measurement Let us know if you have more questions.

@NoashX in case you have nothing to add, I think we can close this issue?

green3g commented 4 years ago

That makes sense. I didn't realize the widget didn't provide the buttons. Thanks @RalucaNicola!