Fix bad endpoint (#316)

This commit is contained in:
Joel Winarske
2022-06-09 12:48:46 -07:00
committed by GitHub
parent afd2bfe6e2
commit cccab12a4f

View File

@@ -425,7 +425,7 @@ void GLFWView::onKey(GLFWwindow *window, int key, int /*scancode*/, int action,
auto &style = view->map->getStyle();
if (!style.getSource("states")) {
std::string url = "https://docs.mapbox.com/maplibre-gl-js/assets/us_states.geojson";
std::string url = "https://maplibre.org/maplibre-gl-js-docs/assets/us_states.geojson";
auto source = std::make_unique<GeoJSONSource>("states");
source->setURL(url);
style.addSource(std::move(source));