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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user