Interactive map based on Leaflet and TopoJSON.
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
.bowerrc
.gitignore
README.md
bower.json

README.md

Interactive map

Source code of our Berlin rents map. This repository does not contain real data, but random data for coloring the polygons.

Demo

Berlin rents map

Installation

You need bower in order to install the dependencies.

$ bower install 

Start

Start a webserver in the app folder. For example:

For python3

$ python -m http.server 1337

For older versions of python

$ python -m SimpleHTTPServer 1337

visit http://localhost:1337

Development

Map

The map is based on Leaflet. Moreover we use topojson.js and this codesnippet in order to enable TopoJSON support for Leaflet.

Data

We have two files that contain data we use in our application

  • app/data/berlin-zipcodes-data.topojson contains the geodata and the data (id,name,district,randomRent) we use in our tooltips
  • app/data/labels.json contains the labels we display on our map
UI/General

We use this libraries for our UI

Contributors

Inspiration

London’s renting crisis

License

The MIT License (MIT)

Copyright (c) 2014 Berliner Morgenpost

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.