Because the shp is being accessed from file://, but the basemap is http/s, a CORS error is thrown when opening index.html locally.
This can be an issue if one os looking to deploy this as a simple shp viewer on a local system.
To replicate simply download a copy of the repo and open index.html in Chrome.
Because the shp is being accessed from file://, but the basemap is http/s, a CORS error is thrown when opening index.html locally.
This can be an issue if one os looking to deploy this as a simple shp viewer on a local system.
To replicate simply download a copy of the repo and open index.html in Chrome.