Skip to content
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

just Open Sans via glyphs link #6

Open
musicformellons opened this issue Jan 3, 2018 · 1 comment
Open

just Open Sans via glyphs link #6

musicformellons opened this issue Jan 3, 2018 · 1 comment

Comments

@musicformellons
Copy link

When I add to my style:

'glyphs': 'https://free.tilehosting.com/fonts/{fontstack}/{range}.pbf',

I get error in the browser console:

mutation loadMap @ 14:26:40.179
:8089/#7.3/50.055/14.001:1 Failed to load https://free.tilehosting.com/fonts/Noto%20Sans%20Regular/0-255.pbf: Redirect from 'https://free.tilehosting.com/fonts/Noto%20Sans%20Regular/0-255.pbf' to 'https://openmaptiles.com/hosting/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8089' is therefore not allowed access.

When I add to my style:

  'glyphs': 'https://free.tilehosting.com/fonts/{fontstack}/{range}.pbf?key={mySecretKey}',

the error is gone, but when changing fonts in the style just Open Sans is 'available/ shows'.

@musicformellons
Copy link
Author

Ah, I now notice that I still get the CORS error, also with key... So my question boils down to: How can I solve the CORS issue and work with multiple fonts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant