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

Issue with scale - changing it produces a grid effect #31

Open
pall3n opened this issue Nov 15, 2016 · 3 comments
Open

Issue with scale - changing it produces a grid effect #31

pall3n opened this issue Nov 15, 2016 · 3 comments

Comments

@pall3n
Copy link

pall3n commented Nov 15, 2016

Hello,

I have just been looking at this api and tested out the example code from issue #11 which works great. The issue arrises when I change the scale. If I change it to 2 it produces this:
ab-image-x2

If I change the scale to 4 which is closer to what I am looking for it does not seem to really do anything.

Any ideas?

@Hyno
Copy link

Hyno commented Feb 1, 2017

Hi pall3n, have you already found a solution for this grid problem? I'd like to hear as im struggling with the same thing. Thanks!

@pall3n
Copy link
Author

pall3n commented Feb 2, 2017

Hello @Hyno, no I did not have any joy with this. Have tried looking down other avenues but no luck yet.

If you do make any progress please post an update as it would be very handy. Thanks

@Hyno
Copy link

Hyno commented Feb 6, 2017

Hi @pall3n, I managed to get a scaled image by manually filling in the tilesize in the getTile url and in the tileSize variable and leave the scale at 1.
var params = {
scale: 1
...
tileSize: 1024
getTile: function(z,x,y, callback){
var url = 'https://api.mapbox.com/styles/v1/{userAccount}/{styleId}/tiles/512/'+z+'/'+x+'/'+y+'@2x?access_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

2 participants