dcfemtech / hackforgood-waba-map

DCFemTech Hack for Good 2016 - WABA Bike Map Project
MIT License
10 stars 9 forks source link

Adds workaround for local testing #130

Closed alulsh closed 7 years ago

alulsh commented 7 years ago

Whoops, var lanesUrl = '/buffers/'; becomes https://dcfemtech.github.io/buffers/ on GitHub Pages and causes 404s.

This code should allow testing with local folders when using a development server, but get the correct URLs when viewing the production site on GitHub Pages.

The benefit of using local files when testing is that this can be used to preview changes to GeoJSON files locally before pushing to GitHub. It also offers a performance benefit when testing locally.