abaculus icon indicating copy to clipboard operation
abaculus copied to clipboard

Issue with scale - changing it produces a grid effect

Open pall3n opened this issue 9 years ago • 3 comments

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?

pall3n avatar Nov 15 '16 15:11 pall3n

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!

Hyno avatar Feb 01 '17 11:02 Hyno

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

pall3n avatar Feb 02 '17 16:02 pall3n

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 ... } };

Hyno avatar Feb 06 '17 06:02 Hyno