Skip to content

fieldsofview/sim-city-cs

 
 

Repository files navigation

csMap for SIM-CITY

csMap, short for common sense Map, is a userfriendly web application for showing (GIS) data on a map. It allows you to apply multiple filters to filter your data, and to style it, so you can immediately see what's important. In addition, in the most basic form, you don't even need a web server, and a public folder on a website is sufficient to be up and running. This instance is styled for the SIM-CITY project at the Netherlands eScience Center.

Features include:

  • Basic map interactions (zooming, geo-locating, selecting different base layers)
  • Displaying geojson files
  • Specifying how properties must be displayed (formatting, title, tooltips, etc.)
  • Filtering on one or more properties
  • Coloring icons and regions based on one or more properties
  • Displaying data in a table, and allowing the users to download it
  • Searching for a feature

Technically, we use the following frameworks:

  • Typescript for coding the application
  • Angularjs as the MVC framework
  • Bootstrap 3 (and fontawesome) for the CSS design style
  • Leaflet for mapping
  • d3, dc, crossfilter for filtering and styling

NOTE

csMap is the front-end of the mapping framework. Most components are actually defined in another open source project on GitHub, csWeb. Check-out this project to see how they relate.

Getting started

Before starting, you should have tsc bower gulp nodemon nodeJS modules (globally) installed:

npm install -g tsc bower gulp nodemon

Basic setup. Run the following commands:

git clone git@github.com:TNOCS/csWeb.git
cd csWeb/
./updateAll.sh
cd ..
git clone git@github.com:NLeSC/sim-city-cs.git
cd sim-city-cs/
./update.sh
tsc
nodemon server.js

Open a browser on http://localhost:3002/ and you should be good to go.

About

SIM-CITY Common Sense application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 42.0%
  • HTML 25.0%
  • TypeScript 21.6%
  • JavaScript 10.6%
  • Other 0.8%