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.
-
1Why 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).Alex Tereshenkov– Alex Tereshenkov2014年10月07日 05:37:14 +00:00Commented 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.Ruchira Welikala– Ruchira Welikala2014年10月07日 14:37:48 +00:00Commented 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).Alex Tereshenkov– Alex Tereshenkov2014年10月07日 15:02:00 +00:00Commented 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.Ruchira Welikala– Ruchira Welikala2014年10月07日 17:24:14 +00:00Commented 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.Alex Tereshenkov– Alex Tereshenkov2014年10月07日 17:50:49 +00:00Commented Oct 7, 2014 at 17:50
1 Answer 1
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
-
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 friendStephen Lead– Stephen Lead2015年01月21日 03:20:05 +00:00Commented Jan 21, 2015 at 3:20
Explore related questions
See similar questions with these tags.