I am trying to turn this JS API sample into a Web AppBuilder custom widget with the WAB Developed Edition.
But not sure where to put the pieces from the sample script in the WAB widget files.
Yes, but I am looking more for the process of turning this simple JS into a widget.
I've changed the event trigger from mouse-move to click and want that to be the entire functionality of the widget.
The existing coordinate widget is way more than I need.
Thanks. I've been through that example. It runs through setting up a widget that writes some text to a panel.
Now I'm looking for an example of how and where to add a map click event function.
I found this kind of helpful to navigate the widget files:
Inside the Widget.js code you have access to the map using this.map, as shown in the Create custom in-panel widget code. So you just add your map click handler using this.map.on.
This may be dumb question, but i've been searching google for a while now trying to figure out how to access the Widget.js code. Do I need to pull my web app down into ArcGIS Pro or something similar to get access to the source files of my web app?
I'm currently working in AGOL WAB. I'm very new to ArcGIS, so I'm still trying to get a handle on all of the different products. I'm assuming I need to take my web app out of AGOL and into a more dev friendly environment.