-
-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Switching to OpenLayers and back to MapLibre hides all styles #874
Comments
I think the support for openlayers is broken so badly we should simply remove the open layers rendering option and reduce the maintenance work. Checkout the openlayers label for other issues. |
@nyurik , maputnik has had a lot of things updated - do you still see this? |
I just checked - openlayers does not show anything at all anymore |
This is what I see following your instructions with the demotiles: https://demotiles.maplibre.org/globe.json Screen.Recording.2025-01-21.at.22.12.20.mov |
Is it a certain specific style that's not working? |
I am getting a blank (off-white) screen when I open the |
P.S. Also, with |
The maptiler is because it looses the api key |
The americana is because ol-mapbox-style is incompatible with the Americana, and Maputnik is running the latest version on the ol-mapbox-style. The ol-mapbox-style doesn't care about the maplibre-style-spec at all, so it's questionable how useful it is. |
Perhaps an issue can be raised with them? ol-mapbox-style does mention MapLibre Style |
UPDATE:
|
Thanks for the link! |
Going from e.g. MapTiler to OpenLayers and back will lose the maptlier key. This code finds the urls in the style that has "{key}" and insert the correct API keys Fixes the error reported here, cc @nyurik - Fixes #874 (comment) Related to: - #869 ## Launch Checklist <!-- Thanks for the PR! Feel free to add or remove items from the checklist. --> - [ ] Briefly describe the changes in this PR. - [ ] Link to related issues. - [ ] Include before/after visuals or gifs if this PR includes visual changes. - [ ] Write tests for all new functionality. - [ ] Add an entry to `CHANGELOG.md` under the `## main` section.
Maputnik version: v2.0 as published on
maplibre.org/maputnik
Browser: Chrome
OS: Linux
Description of the bug:
All styles stop working after switching to OpenLayers (experimental) and back
Steps to reproduce the behavior:
Style Settings
change last setting -style renderer
toOpen Layers
The text was updated successfully, but these errors were encountered: