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.html
The AreaMeasurement2DViewModel and the DistanceMeasurement2DViewModel don't list such properties:https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html
Thus, the question: is it possible to change the symbology of the measurment tools?
Hi @nadja, 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-widgets/idc-p/1015284#M29
https://community.esri.com/t5/arcgis-api-for-javascript-questions/custom-symbology-for-measurement-widgets/td-p/344117
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.