Skip to content

jvgriffis/OTM2

 
 

Repository files navigation

#OpenTreeMap 2

##Dev requirements While not necessary to run the application, Node.js and Grunt are required to build it.

Install node 0.8, and run:

npm install -g grunt-cli

##JS file structure

All OTM2 javascript files are found in opentreemap/*/js/src/

Javscript libraries are in one of 4 places:

  • Libraries that are maintained by their authors on NPM are listed in the package.json and brought in by npm install
  • Libraries that don't pollute the global namespace and put themselves onto modules.exports, but which are not on npm, are in opentreemap/*/js/lib/
  • Libraries which pollute the global namespace and/or depend on global variables are in opentreemap/*/js/shim/
    • When adding a JS library which needs shimming, don't forget to add it to the shim section of the Gruntfile
  • Libraries which require being downloaded from the vendor's servers (such as the Google Maps API) are included directly in a <script> tag on the page and then manually shimmed with a wrapper file in opentreemap/*/js/lib/

About

OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published