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

Crashing - Probably due to request for negative tiles #1483

Closed
MortenHofft opened this issue Sep 13, 2015 · 0 comments · Fixed by #1528
Closed

Crashing - Probably due to request for negative tiles #1483

MortenHofft opened this issue Sep 13, 2015 · 0 comments · Fixed by #1528
Assignees
Labels
Milestone

Comments

@MortenHofft
Copy link

To reproduce

Console: Uncaught TypeError: Cannot read property 'replace' of undefined

TileCoord.prototype.url = function(urls, sourceMaxZoom) {
    return urls[(this.x + this.y) % urls.length]

(this.x + this.y) % urls.length] is a negative number.

It can also be seen in the failed request for tiles a la:

https://a.tiles.mapbox.com/v4/mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v6/1/-1/1.vector.pbf?access_token=pk.eyJ...A

screen shot 2015-09-13 at 20 52 44

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

Successfully merging a pull request may close this issue.

4 participants