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

Secure URLs forced to use port 80. #10

Open
lavahot opened this issue Jan 23, 2016 · 4 comments
Open

Secure URLs forced to use port 80. #10

lavahot opened this issue Jan 23, 2016 · 4 comments

Comments

@lavahot
Copy link

lavahot commented Jan 23, 2016

Again, with browserify: When using a secure URL, at some point along the line the URL is injected with ":80" at the end of the domain, causing an SSL error.

@anandthakker
Copy link
Contributor

What is the tile source you're using?

On Sat, Jan 23, 2016 at 3:21 AM Taylor Mansfield notifications@github.com
wrote:

Again, with browserify: When using a secure URL, at some point along the
line the URL is injected with ":80" at the end of the domain, causing an
SSL error.


Reply to this email directly or view it on GitHub
#10.

@lavahot
Copy link
Author

lavahot commented Jan 26, 2016

The exact URI I pass to vtgeojson is: "tilejson+https://api.mapbox.com/v4/" + {map_name} + ".json?access_token=" + {access_key}.
My options are set as: { bounds: {A turf.js generated feature collection}, strict: true }

@lavahot
Copy link
Author

lavahot commented Jan 27, 2016

I should mention that the tilejson gets the tile uri https://a.tiles.mapbox.com/v4/{MAP_NAME}/{z}/{x}/{y}.vector.pbf?access_token={ACCESS_TOKEN} and then the AJAX call is https://a.tiles.mapbox.com:80/v4/{MAP_NAME}/NaN/NaN/NaN.vector.pbf?access_token={ACCESS_TOKEN}.

@brandonxiang
Copy link

The usage in Readme.md mentioned

var source = 'tilejson+http://api.tiles.mapbox.com/v4/YOUR-MAPID?access_token=YOUR_MAPBOX_TOKEN'

but it is failed to connect.

The URI for tilejson may be changed like

var source = 'tilejson+https://api.mapbox.com/v4/YOUR-MAPID.json?access_token=YOUR_MAPBOX_TOKEN'

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

3 participants