unicef / magicbox-maps

Map mobility data in a NodeJS + React front-end application with data served by magicbox-open-api
http://magicbox-maps.azurewebsites.net
BSD 3-Clause "New" or "Revised" License
11 stars 11 forks source link

Fetch topojson from magicbox-open-api and convert to geojson #92

Open mikefab opened 6 years ago

mikefab commented 6 years ago

Task

Fetch topojson from magicbox-open-api and convert to geojson

Why do this

Currently only one admin level shapefile can be displayed in the app. It is hardcoded in ./routes/shapefile.js.

Since the app needs to feature more than one country, it should fetch shapefile data from an API. Since topojson cannot be used with leaflet, we need to convert it to geojson first.

thoat commented 6 years ago

This relates to unicef/magicbox-open-api#53.

thoat commented 6 years ago

However, in our recent discussions, we are considering to move from Leaflet to MapboxGL. Hence, we may or may not need to convert data to geojson.