I JsApi 3.x I had "esri/dijit/Measurement," but I cannot find an example for JsApi 4.x.
(if nothing for ShareDialog, please disregard.)
Horia,
There is a measurement widget in 4.10:
AreaMeasurement2D | API Reference | ArcGIS API for JavaScript 4.10
AreaMeasurement3D | API Reference | ArcGIS API for JavaScript 4.10
There is no share widget/dialog
In addition to the resources that Robert posted, here are some samples that use the 4 different measurement widgets available at 4.10:
Measurement in 2D | ArcGIS API for JavaScript 4.10
Measurement in 3D | ArcGIS API for JavaScript 4.10
and a blog post about using the 2D measurement widgets:
Those are great!
Is there another one measuring a point?
I.E. should return the coordinates of the point; if the map has elevation, should also return the elevation.
Also - I'll try this later... - I need all three combined in one panel. The widget should have some configuration options to display or not the mode and the units selectors (with defaults.) (When not displaying the units selector,) should automatically select the multiplier (m, km etc.)
I'm not sure of a widget measuring a point, but we do have a CoordinateConversion widget, which can do something similar, or just make sure of the x/y/z properties of the point geometry.
CoordinateConversion | API Reference | ArcGIS API for JavaScript 4.10
Yes: working great!
(Please ignore "Also - I'll try this later...")
We don't have an out-of-the-box share widget but there is one available on the Esri GitHub org that we use in some of the configurable apps:
share-widget/Share/Share at master · Esri/share-widget · GitHub