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.
Whoops,
var lanesUrl = '/buffers/';
becomeshttps://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.