GithubHelp home page GithubHelp logo

jorge-monge / income_spain_2020 Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 7.41 MB

A webmap built with React and the ArcGIS JS API, and consuming ArcGIS Online resources

Home Page: https://incomeinspain2020.vercel.app/

HTML 4.78% CSS 10.46% JavaScript 84.76%
2020 espana renta

income_spain_2020's Introduction

A web app built with React and the ArcGIS JS API, consuming an ArcGIS tile server and REST map services.



React badge HTML5 badge CSS3 badge Javascript badge

Objectives

  • Display the different layers related with income information in Spain, 2020.
  • Allow the user to examine all different layers without exiting the application.
  • When users switch to a different layer, the view extent shall be maintained.
  • When users switch to a different layer, don't re-render the basemap layer.

Setup from scratch

  • Use create-react-app to initialize a React app with NPM.

    npx create-react-app
    
  • Esri Calcite Icons: https://github.com/Esri/calcite-components-examples/tree/master/react

    • Install Esri Calcite UI Icons https://esri.github.io/calcite-ui-icons
      npm install @esri/calcite-ui-icons
      
    • Install the ncp Node package, and add the postinstall and copy scripts to 'package.json'
    • Install Esri Calcite Components React This package includes the compatible version of the main component library as a dependency, so no need to install @esri/calcite-components separately.
      npm install @esri/calcite-components-react
      
    • Install the Calcite assets locally (this will copy the Calcite assets (the icons, basically) from "node_packages/@esri/calcite-components/dist/calcite/assets" into "public/assets")
      npm run copy
      
    • Install Toastify
      npm install react-toastify
      
    • Serve the app locally with:
    npm start
    
    • The app is automatically redeployed to Vercel upon Git pushes to the remote
    • The app relies on several environment variables with the URLs of the map and feature services.
  • Todo

    ☞ In the legend, create a single object with the sublayer names in EN and ES
    ☞ Implement debouncing for click events
    ☞ Alerts about the possibility of clicking on a different location without closing the info table
    ☞ Show an info icon by the cursor when hovering over a queryable area

  • Notes


income_spain_2020's People

Contributors

jorge-monge avatar

Stargazers

 avatar

Watchers

 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.