Geovation / labelgun

🏷️ reducing label clutter across mapping libraries
https://geovation.github.io/labelgun/
113 stars 10 forks source link

Example fails locally #7

Closed tomchadwin closed 7 years ago

tomchadwin commented 7 years ago
example.js:20 Fetch API cannot load file:///C:/Users/tchadwin/Desktop/labelgun-master/examples/geojson/cupcakes.geojson. URL scheme must be "http" or "https" for CORS request.
(anonymous) @ example.js:20
tomchadwin commented 7 years ago

Could either just inline the GeoJSON or use JSONP.

JamesLMilner commented 7 years ago

Seems sensible to me! Fetch isn't widely supported either so makes sense I think

JamesLMilner commented 7 years ago

Merged! @tomchadwin if all's okay we can close this issue :)

tomchadwin commented 7 years ago

Spiffing! Don't close yet - still working on the OpenLayers example.

tomchadwin commented 7 years ago

If you are happy to merge #9, this can definitely be closed.