How can I use geojson file data to display on default Web AppBuilder Map provided by the application.
I have used this link "GitHub - Esri/geojson-layer-js: An easy way to load GeoJSON data into your ArcGIS map "
but here the map is being created and then used in the HTML file and is standalone file.
My query is how can I implement this feature in my Default Map. ?
P.S Can I use angularJS(1.4) to code in Web AppBuilder application ?
Any help on this is highly appreciated
The Add Data widget supports adding GeoJSON as run-time.
You can also add GeoJSON to the WebMap in AGOL/Portal which the WAB APP can use as it's basemap:
This seems to be great but May i know as in How can I display in map via code..
Consider a scenario like i have to two checkbox and two Geojson file and on click one checkBox one Geojson should be invoked and data should be displayed.
and on click of both , both geojson should be triggered displaying from both
Then add the GeoJson to a AGOL under your content and then you can have access to add the PortalItem using code in your widget (have never had the need for such so I have no code example). Or you follow the guide for using a third party library (the github one you refernced in your first post) and add the GeoJson at runtime from your widget.
Thanks Robert, will try this way.
Robert a general question
I am new to this tech of ArcGIS WAB Can you please suggest the necessary technology stack require for the same and some study links which can be helpful as I move further in development
P.S I am an AngularJS developer.
You should make heavy use of the WAB Dev help site and see the guide and samples sections as well as open the source code inside WAB Dev otb widgets to see how things are done. WAB / JS API ingeneral are Dojo centric so learning dojo basics are essential: