-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
baseApiUrl w/ path & normalizeTileURL functionality #8458
Labels
Comments
sumarlidason
pushed a commit
that referenced
this issue
Jul 11, 2019
sumarlidason
pushed a commit
that referenced
this issue
Jul 11, 2019
- adds regex to trim tileURL prefix to /v4/... - adds filter to makeAPIURL preventing duplication of param 'access_token' - reorders params on test case -> sku,access_token closes #8458
Possible fix w/ 37ab6b7
I am not certain this is the best solution - |
sumarlidason
pushed a commit
that referenced
this issue
Jul 11, 2019
- adds regex to trim tileURL prefix to /v4/... - adds filter to makeAPIURL preventing duplication of param 'access_token' - reorders params on test case -> sku,access_token closes #8458
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mapbox-gl-js version: v0.54 / 1.0.0 / master
browser: chrome
I am experiencing malformed URLs generated from
normalizeTileURL
andmakeAPIURL
. This issue seems to only occur when the baseAPIURL contains a path (as opposed to just a host). I want to compare the behavior between mapbox.com & an Atlas hosted solution w/ a path ofhttps://localhost:8080/mbx
..com
is returning this tile format string:
It enters the
normalizeTileURL
function as:manipulated within the function to
and finally, from
makeAPIURL
:Atlas Hosted
is returning me a semi-accurate tile format string (the protocol is wrong):
It enters the
normalizeTileURL
function this way, however inside this function the path is manipulated, and thev4
prefix is needlessly appended:In the return statement this urlObject is passed to
makeAPIURL
, for a final url ofYou can see we got the API path prepended again.
Seeking Guidance
I don't understand the rewriting of the url format provided by the
/v4
request. Additionally it looks like we are losing the subdomaining browser hack for increased parallelized requests?The text was updated successfully, but these errors were encountered: