4

I downloaded a webapp builder template (javascript) that I've placed on my own web server and is running fine.

However, I am not able to modify the widgets in the config.json file to the settings that I want.

For instance, I want the "Coordinate" widget to have meters instead of feet, however, when I adjust the config.json file in the widget file, these changes aren't reflect.

Has anyone encountered this issue?

I read the webapp builder documentation (http://doc.arcgis.com/en/web-appbuilder/extend-apps/coordinate.htm) but can't seem to figure it out.

This is the json in the current config file (for the app itself, not just the widget):

 {
 "label": "Coordinate",
 "uri": "widgets/Coordinate/Widget",
 "position": {
 "left": 200,
 "bottom": 20
 },
 "config": {}
 }

This is the json in the widget config file:

{
 "outputunit": "dms",
 "spatialReferences": []
}

The latter says DMS but the units still show up as feet.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Oct 6, 2014 at 21:54
8
  • 1
    Why not just edit the widget from the AppBuilder? You can specify what units will be used for the coordinates there. Widgets tab > Coordinate. You can even add output coordinate system if you have your data overlay in another spatial reference (and specify what units you want to have). Commented Oct 7, 2014 at 5:37
  • @alex-tereshenkov, but after configuring the app, can I download it and host it on my own web server? From what I have found, if you configure the app on ArcGIS Online using their web builder, it has to be hosted on AGO. Commented Oct 7, 2014 at 14:37
  • Oh yes, I've done this without any problem. You just need to click Download in the Web AppBuilder main window for the application you want to host. You will get a .zip file with all the contents which you can host (I've used IIS). Commented Oct 7, 2014 at 15:02
  • @alex-tereshenkov , Is this only available if you're part of the beta community for the app builder? I'm using the Beta app builder on ArcGIS online organizational account and there is no download option for the apps you create and save. Commented Oct 7, 2014 at 17:24
  • You have stated in the question that "I downloaded a webapp builder template (javascript) that I've placed on my own web server and is running fine." Which is why I've thought you are working with the local version. I have access to the beta and yes, you need access to this to get your app downloaded so you could make modifications. Commented Oct 7, 2014 at 17:50

1 Answer 1

5

In the Web AppBuilder for ArcGIS (Developer Edition), after modifying the configuration of the Coordinate Widget in a local application and ensuring that you've saved your work, the settings can be found/manipulated here

apps\[number]\widgets\Coordinate\config_Coordinate.json
PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
answered Oct 8, 2014 at 0:30
1
  • John, this will make a change to published app [number]'s widget config. Is there a way to tell WAB to look for changes to the source widget code or config, from the \client\stemapp\widgets directory? Asking for a friend Commented Jan 21, 2015 at 3:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.