In JsApi 4.x are there widgets for Measurement or ShareDialog?

531
6
01-18-2019 08:46 PM
HoriaTudosie
Occasional Contributor II

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.)

6 Replies
Noah-Sager
Esri Regular Contributor

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:

Measure Twice with the new 2D Measurement Widgets 

HoriaTudosie
Occasional Contributor II

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.)

0 Kudos
Noah-Sager
Esri Regular Contributor

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 

Point | API Reference | ArcGIS API for JavaScript 4.10 

HoriaTudosie
Occasional Contributor II

Yes: working great!

(Please ignore "Also - I'll try this later...")

0 Kudos
KellyHutchins
Esri Frequent Contributor

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