Comments (8)
@Baohong here is a link to the github repository that contains the latest local layer widget and instructions on how to add it to the WAB Local Layer Widget
from enviroatlas.
Branch EviroAtlas_Baohong apps folder has been updated with the latest files, also LocalLayer is functioning. We need to get some idea of how to set the input for LocalLayer so that it could work with user selections and other widgets such as Layer List.
from enviroatlas.
Ok, I think I understand what's up - and this really confused me at first. There's a huge difference between the code that's located in the arcgis-web-appbuilder-1.x\server\apps\x folder and what is produced when you choose to "download" that app from the developer edition main menu. The former is tightly integrated with node.js as the webserver, while the latter can be run on any webserver - IIS, Apache, whatever. Since we don't have node.js in our EPA production environment, we do need to target the alternate approach. If we obtain widgets from other sources (GeoNet, wherever) and they're in the first mode - Node.JS mode, then I think we need to add them to a staging app in our local developer edition instance, fire up Node.JS, and use the "Download" function in the main menu to run the conversion to standalone mode before dropping it in our app and committing it to our repository. That would explain the huge difference between the two branches. Does this make sense?
Agree that once we get the local layer widget working, we need to unpack it and start discussing all the different related requirements.
from enviroatlas.
Ahhh, this is why I thought I'd already covered this. I did capture it on a wiki page, and I assumed that everyone received a notification when the wiki was posted - probably an unsafe assumption.
https://github.com/Innovate-Inc/EnviroAtlas/wiki/Startup-Notes
Sorry about that.
from enviroatlas.
I have downloaded Torrin's version of arcgis-web-appbuilder-1.2 which is almost the same with my version except for a few missing several libraries, created a new App, exported (downloaded) as a zip file. Yet, the unzipped App is the same with arcgis-web-appbuilder-1.2\server\apps\2 except for the file arcgis-web-appbuilder-1.2\server\apps\14\env.js, with line 92 (apiUrl = '//js.arcgis.com/3.14';) being uncommented.
That is, the widgets in my downloaded zip file App and in arcgis-web-appbuilder-1.2\server\apps\2 as well as in arcgis-web-appbuilder-1.2\client\stemapp are very consistent.
I have also committed the new downloaded App to branch EnvrioAtlas_Baohong. There are still huge differences between my branch and master especially with all the widget parts. The only reason I could think of is the AppID we used to start Web AppBuilder. I was following the instructions on https://developers.arcgis.com/web-appbuilder/guide/getstarted.htm to generate the App ID.
If possible, Torrin, could you share App ID and the corresponding Application properties when you generate the App ID? In my end, I could not get a same WAB as master branch using my current programming environment.
from enviroatlas.
Ok, so I think we're getting closer, but Esri is still throwing us for a
loop. When we're working with WebAppBuilder-1.2, the exported config.json
file reports the versions of all the widgets to be 1.3. This is apparently
a known idiosyncrasy that was previously discussed on GeoNet and briefly on
the phone:
https://geonet.esri.com/message/491894#491894
As of right now, the master branch is reporting version 1.3 across the
board, while EnviroAtlas_Baohong is reporting version 1.2 (which indicates
it was built and exported with WebAppBuilder-1.1. This is more than enough
to drive anyone bonkers. We can try a merge between your Branch, Baohong,
and the master branch, and it will probably work, however, I think it would
be safest to try adding the LocalLayer widget first to a local copy of
WebAppBuilder-1.2 so that when it is exported the config.json file is
reporting version 1.3 - this should allow it to be seamlessly merged with
the master branch. Does that seem reasonable? I don't think the appID
comes into play.
On Tue, Oct 13, 2015 at 5:53 AM, Baohong [email protected] wrote:
I have downloaded Torrin's version of arcgis-web-appbuilder-1.2 which is
almost the same with my version except for a few missing several libraries,
created a new App, exported (downloaded) as a zip file. Yet, the unzipped
App is the same with arcgis-web-appbuilder-1.2\server\apps\2 except for the
file arcgis-web-appbuilder-1.2\server\apps\14\env.js, with line 92 (apiUrl
= '//js.arcgis.com/3.14';) being uncommented.
That is, the widgets in my downloaded zip file App and in
arcgis-web-appbuilder-1.2\server\apps\2 as well as in
arcgis-web-appbuilder-1.2\client\stemapp are very consistent.
I have also committed the new downloaded App to branch
EnvrioAtlas_Baohong. There are still huge differences between my branch and
master especially with all the widget parts. The only reason I could think
of is the AppID we used to start Web AppBuilder. I was following the
instructions on
https://developers.arcgis.com/web-appbuilder/guide/getstarted.htm to
generate the App ID.
If possible, Torrin, could you share App ID and the corresponding
Application properties when you generate the App ID? In my end, I could not
get a same WAB as master branch using my current programming environment.—
Reply to this email directly or view it on GitHub
#3 (comment)
.
Torrin Hultgren
Senior Manager, Geospatial Solutions
Innovate!, Inc.
O: (703) 922-9090 x737
Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned
business delivering Geospatial, Information Technology, Security,
Business Consulting, Project Management and Executive Coaching
solutions to our government and private sector clients. Check us out
at www.innovateteam.com.
from enviroatlas.
Local Layer is added to master branch. But in config.json, this widget is shown as 1.2.
from enviroatlas.
Great, closing this issue!
from enviroatlas.
Related Issues (20)
- Community tiled layers not showing "Map description" in layer list menu, also popups are flakey
- Time Series Viewer - please change default visibility/transparency for all layers to 60% HOT 4
- Raindrop Tool - misc. questions HOT 1
- Only one segment of an elevation profile is being displayed
- Many layers are hidden from searchFilter widget when a community is selected
- All external services fail to load via add data widget, even if service is live
- Remove "+/-" button in search filter widget.
- Break multipart features into single part to make popups more performant HOT 1
- Delay application of new symbology until "apply" button is clicked HOT 2
- "Draw layer on top" isn't working for dynamic layers HOT 8
- Default visibility should be 60% instead of 50% HOT 2
- For tiled map services in the config file, the layer list legend does not respect transparency but... HOT 1
- Change wording from "All Communities" to "Combined Communities" throughout application HOT 1
- SLD layers have feature services turned on at all scales
- Config file changes HOT 1
- HUC Nav and raindrop text changes HOT 1
- fixes to left panel widgets HOT 1
- Explore including text next to cursor for analysis tools HOT 1
- Functionality issue between Raindrop/HucNav/Elevation HOT 1
- Explore upgrade to WebAppBuilder 2.x HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enviroatlas.