Shelters in Aarhus

Embedded via Open Data Aarhus.

However it’s possible to download the json from the page: shelters.json. If you can import the json to Mapbox then … kaboom!

Mapbox cannot import the shelters.json file. Try to remove this line:

"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },

Save your file and bingo! Now you have a dataset.

  1. In mapbox import the file shelters.json
  2. Export the datalayer as a tile.
  3. In your map use the tile as a layer.
  4. That’s it.

Here’s thee result in the Mapbox studio:

Editing Shelters in Aarhus in Mapbox
Editing Shelters in Aarhus in Mapbox. Click to see the live sample.

Now you can embed the map in your CMS or on a web page. If you work in WordPress the next step could be a custom page or post with the image loading open data from Aarhus – or to create a plugin with a shortcode that will display your map. Follow the recipe here.

 

 

Published by

Per Thykjaer Jensen

I am a Senior Lecturer in front- and backend web programming at the Multimedia Design and Communication Programme at Business Academy Aaarhus.

I speak several languages: PHP, Python, MySQL, JavaScript, Nodejs, HTML, CSS, and … Danish.

Background: MA it, interaction and multimedia – MA Literature history – BA Art History.

Leave a Reply