Select to view content in your preferred language

Measurement 2D - is it possible to override the default symbology?

398
1
08-29-2022 02:24 AM
nadja_swiss_parks
Occasional Contributor II

The widget measurement 2d has got a default symbology for the distance and area measurement, which does not work with our CID. Thus we need to change it. 

The SketchViewModel allows this as it offers such properties. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.ht...

The AreaMeasurement2DViewModel and the DistanceMeasurement2DViewModel don't list such properties:
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMea...

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-Dis...

Thus, the question: is it possible to change the symbology of the measurment tools?

Tags (3)
0 Kudos
1 Reply
Noah-Sager
Esri Regular Contributor

Hi @nadja_swiss_parks, thanks for the question. This is something we are discussing, and planning on offering in the API at a future release. There are a couple other threads that have further discussion in them:

https://community.esri.com/t5/arcgis-api-for-javascript-ideas/custom-symbology-for-3d-measurement-wi...

https://community.esri.com/t5/arcgis-api-for-javascript-questions/custom-symbology-for-measurement-w...

 

0 Kudos