Giter Club home page Giter Club logo

mooc-openlayers-project's Introduction

MOOC OpenLayers

Get started with the project

Below are the instructions to get started with the development environment and the project on Ubuntu, Windows and other OSs.

On Ubuntu, Debian, and related Linux distributions

  • Install Node.js:

    sudo apt update
    sudo apt install nodejs
    sudo apt install npm
  • Install Atom or any code editor of your choice:

    wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
    sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
    sudo apt-get update
    sudo apt-get install atom
  • Create an empty directory for the project

    mkdir my-project
    cd my-project
  • In the newly created folder, initialize the Node.js project:

    npm init
  • Add the OpenLayers and Parcel packages to the application:

    npm install ol
    npm install --save-dev parcel-bundler

On Windows and other OSs

  • Install Node.js: download the installer from [here]

  • Install Atom or any code editor of your choice: download the installer from [here]

  • Create an empty directory for the project.

  • In the newly created folder, initialize the Node.js project using the command line:

    npm init
  • Add the OpenLayers and Parcel packages to the application:

    npm install ol
    npm install --save-dev parcel-bundler

After the installation

After having followed the above steps, create two files:

  • index.html containing the HTML code, CSS styles, and the map container;
  • index.js containing the JavaScript code for your mapping application.

You also have to add a start script line in the package.json file (the file is automatically created with npm init in the previous steps) to easily run your application with Parcel:

...
"scripts": {
  "test": "echo \"Error: no test specified\" && exit 1",
  "start": "parcel index.html",
  "build": "parcel build --public-url . index.html"
},
...

Once some code has been written in the index.html and index.js files, you will be able to test you code by running:

npm start

in your project directory. You can now test your web mapping application opening the URL http://localhost:1234/ in your favorite browser.

Essential concepts seen during the course

OpenLayers Classes

Project Diagram

This diagram represent the various classes and attributes used in the project as well as their interrelations:

alt text

Web Resources

mooc-openlayers-project's People

Contributors

faselm avatar julsbreakdown avatar

Watchers

Frédéric Junod avatar Gabriel Roldan avatar Christian Kaenzig avatar Pierre Mauduit avatar Yves Jacolin avatar James Cloos avatar Jose Macchi avatar Marion Baumgartner avatar Florent Gravin avatar Jeremy Barascut avatar Frédéric Jacon avatar  avatar Maurer Luc avatar  avatar Julien Acroute avatar Alexian Masson avatar  avatar Max Laager avatar  avatar  avatar

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.