fix glfw platform feature state demo (#3313)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
cjbd
2025-03-17 16:24:42 +08:00
committed by GitHub
parent e7f66f98ab
commit 296ce07394

View File

@@ -482,9 +482,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://maplibre.org/maplibre-gl-js-docs/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));