Giter Club home page Giter Club logo

Comments (8)

David-Yarnell avatar David-Yarnell commented on July 3, 2024

@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.

Baohong avatar Baohong commented on July 3, 2024

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.

torrin47 avatar torrin47 commented on July 3, 2024

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.

torrin47 avatar torrin47 commented on July 3, 2024

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.

Baohong avatar Baohong commented on July 3, 2024

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.

torrin47 avatar torrin47 commented on July 3, 2024

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

http://www.innovateteam.com

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.

Baohong avatar Baohong commented on July 3, 2024

Local Layer is added to master branch. But in config.json, this widget is shown as 1.2.

from enviroatlas.

torrin47 avatar torrin47 commented on July 3, 2024

Great, closing this issue!

from enviroatlas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.