Are there any possibilities to get the code of a widget and modify the render method?
I checked the youtube resources -> https://www.youtube.com/watch?v=o4yzbiHIAT8&t=125s
But in there they use a tsx file where you can modify whatever you want. Now looks like those tsx files are no longer available.
Hi @RemiBecheru, you can use the methods from the CoordinateConversionViewModel in your own UI, if that is of interest to you.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#methods-summary
I'd like to hear more about your thoughts on the CC widget. Feel free to outline them here, or message me directly.
@AndyGup I am interested in the CoordinateConversion widget. Mainly I am not satisfied with the rendered UI, but there are some other things as well.
For example, I would like to input coordinates directly by clicking on the coordinates format instead of clicking on the dedicated edit button.
Thanks @RobertScheitlin__GISP link has been updated to an existing sample. The other sample (SketchViewModel Styler) will be available in the upcoming 4.22 release.
@AndyGup
Unfortunately your example url seems to be a non-public url.
@RemiBecherucorrect, as of 4.21 we no longer support directly modifying the out-of-the-box widget View code. Which widget are you using? Some options going forward are extending the ViewModel, or building a custom widget.
A common example for extending the ViewModel is SketchViewModel, here's the doc: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html and here's an example: https://developers.arcgis.com/javascript/latest/sample-code/layers-mapnoteslayer/
We are looking into adding a sample and some additional doc on this.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.