Coder Social home page Coder Social logo

Comments (4)

jwasilgeo avatar jwasilgeo commented on May 22, 2024

This is a little hard to help debug without more info. The local demos should work okay. Did you download the entire repository and then try to run the main demo? Are you using a web server on your computer? (you do not want to navigate to the demo's index.html in your browser to a URL that looks like file://...)

from canvas-flowmap-layer.

betim avatar betim commented on May 22, 2024

Sorry, this is entirely my fault. I didn't clone the repo and try to run the main demo, but rather copied files one by one.

The problem was: it tried to load config.js from http://config.js/ -- that's why I was assuming that it is required from esri.

This now works, but I still have no idea how config.js is loaded.

Regards

from canvas-flowmap-layer.

jwasilgeo avatar jwasilgeo commented on May 22, 2024

No worries and glad you got it working. As for config.js, we instruct Dojo (what the Esri JSAPI is built on top of) to become aware of other JavaScript resources in addition to the modules that it comes with out of the box. In our demos, we inform it that we need to be able to reference some local js files like this:
https://github.com/sarahbellum/Canvas-Flowmap-Layer/blob/master/demos/main/index.html#L28-L41

from canvas-flowmap-layer.

betim avatar betim commented on May 22, 2024

This answers all my questions. Thanks

from canvas-flowmap-layer.

Related Issues (7)

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.