-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix for OS Maps bug #1353 #1354
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
base: master
Are you sure you want to change the base?
Conversation
e0d31d0
to
ea6f69a
Compare
@@ -217,11 +218,12 @@ export default () => { | |||
{ | |||
id: 'ordnanceSurvey', | |||
title: t('mapOrdnanceSurvey'), | |||
style: 'https://api.os.uk/maps/vector/v1/vts/resources/styles?key=EAZ8p83u72FTGiLjLC2MsTAl1ko6XQHC', | |||
style: `https://api.os.uk/maps/vector/v1/vts/resources/styles?key=${ordnanceSurveyKey}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for using own key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That key appears to have been revoked by the person who originally put it in, and so the "tiles" don't load with the error "A Premium Plan is required to access Premium Data"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never revoked it. I though maps are free and don't require any "access Premium Data".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At zoom level 12 and above, the tiles are considered "premium", 11 and below are free - apologies.
Would the option to use our own token be more sensible? Similar to the LocationIQ service?
E.g.
const ordnanceSurveyKey = useAttributePreference('ordnanceSurveyKey') || 'YOUR TOKEN HERE';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that works.
Fix problem with font stack "Open Source Sans" not being found on the OS API endpoints - force the use of "Source Sans Pro Regular"