-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requests to third-party server for fonts #1030
Comments
@simonseyock If that's made opt-in, 99% of all maps will be displayed with incorrect fonts. So I don't think this would be practical. Especially given the fact that most users will be using maps that also come from a 3rd party server. If you have a suggestion for a doc improvement, feel free to create a pull request. |
Ok, you are probably right. I see if I can improve the docs here. |
Note: Ideally, map publishers like MapTiler or basemap.de should include an @simonseyock, I think you're closer to basemap.de than I am, so maybe you can remind them to update their style jsons. And maybe @klokan can help to get the same done at MapTiler. For reference, here is the documentation: https://github.com/openlayers/ol-mapbox-style#font-handling. |
how is this supposed to work when used in conjunction directly with a mapbox url? I cannot seem to find where I would be able to intercept the style object or style object request to inject the webfonts attribute |
You cannot, but I think ot would make sense to ads an option for that. |
I try to establish a contact here 👍 |
I mention some people close to the basemap.de Team: @stenderg @sratjens @TheCartographerDev |
See #1058 |
This lines will cause requests to a third-party server:
ol-mapbox-style/src/text.js
Lines 158 to 161 in f85e5ff
ol-mapbox-style/src/stylefunction.js
Lines 1209 to 1218 in f85e5ff
ol-mapbox-style/src/apply.js
Lines 356 to 365 in f85e5ff
This is not really documented, in the stylefunction docs you find this:
In the
fonts
part of the docs you find this:This does not make it clear that by default a third-party server will be requested.
Also in my personal opinion this should be an opt-in feature instead of the default behavior.
The text was updated successfully, but these errors were encountered: