From fbea8565244ad254eb9678798b4a21c88916dd85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Wed, 19 Apr 2017 18:13:42 +0200 Subject: [PATCH] Add test for overzooming parent raster tile --- .../raster-loading/missing/expected.png | Bin 0 -> 6406 bytes .../raster-loading/missing/style.json | 37 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 test/integration/render-tests/raster-loading/missing/expected.png create mode 100644 test/integration/render-tests/raster-loading/missing/style.json diff --git a/test/integration/render-tests/raster-loading/missing/expected.png b/test/integration/render-tests/raster-loading/missing/expected.png new file mode 100644 index 0000000000000000000000000000000000000000..a1ad7a5b57ba106dfe91b8f927cb10428adab932 GIT binary patch literal 6406 zcmWkzdpwiv8@HL6V>>vEN!u*ELX1S}wXLbG5Jj59>l|L2V^Ji=$ee8vk))GX$xtGP zOwQ)8{L;L0PAHWe-cZtSeV)(#+@I&K>%OnU_xgUXhwbQaTuEM2UP?+ziAo`#mh6Pz z3j&tBD}y5@B^!`RCOTgNeA2x7T1pD}^7q#>{y>cX+l!MkQ%ysS&l7iW#r7wz=Xb2M zW$TUN))ZHNRjXR}YxrNL?YU=Iiz3|RgDXFl)@`6vD(cDX>txzx?VlUJR%{sF*}b19 zjQn(~swqm=R_?BU?kvjew~6KV-`Ib7XImq1>BMqYSO71J(FRFVD-jrGi@QF5Had9F zD`IP2>3Pg^M}$e$0iK4qE7Wsq?rzSx8!5%bFb;Q@&A%1tv!)q=b~Ikh4O=g(bf`+?cMvmzOLR? zKOFy^l_n+E)Hd(VuGUZ#Sc#T5#y@X(czUgUU*)(~d#!w#Fk;Zo6{LK;HHqQ`VG1C* z|D5<#UcIkMCLW~6kc&;e&xRo7kSfDKH;}QJ8Bf8a-jr=hA|EIrhS@)bXemkGDcgT* z;neM~UcdSi=D9guk@aE>lfeV5U8A()14MgdU0rW@czAq$zx1}br4iHJW?^Mf(J|IL z7Hs4lyguoaJeu5k;rqX|(ZQ|Dvc-9c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BfNI^H-8WeDDB{ptR>qu zlN}M$e^@JGZ_e%bo~fOQsn?7s->U=j%#Pa~59rYAWXoI@?0pgl08^4vDL<}*dJK{hBwQ3;@`l+{(3zfu(+5P^arHk-8ySz6+WT+V%vJyT zUcGhg_BLxUA(z>A&obD&>>0SwO7>M}rbF1Ri=MRdk+_Aq21ce;?@eciN-&4|N*~Ry zbCgEa>VD`bkeX{F((v#$nW!jW=HwNm)wgAsshoa-c+g-O(h zKI)q3H2(JxFwY59go;v(ba2o<5-XV69+>(%wX?IlwLWs{!?r9H>vmKk-wW>787g?! zayD@K9GY)7HDANeWZ|BH>4RqkAz}A;h1?&7W_g(m@-TL>3ehs7oNuctFsh(wefdTg zGyP4v@+#+A>L#*J+5Eh|=htTUr)cX#Q#b6#C|GP7L?vrfQz9=Fu;j+HQ6~*oeAMZD zMFxe*d|Ym#CYkAQ`>1d3!F>_=3M?z_>^VE^A^AdO58{Iw;)zVBkf#^-mOHtSLz>^Z zy%XL&e)#HkA$M@YzYL#8UcMFJ`62%Peub0El-wxCI<%%a*Q&QBFKQNFWke1cMx~>n z07`ku+;~rkU_iuQX+X0-U+OR}@Z{B&g}PN;N&>~({|jG#55txfiCb5{eB3u(5VrP9 ZO4;|6i~E#Ev*gEy6xG&&{DkD4^nd9ji@X2; literal 0 HcmV?d00001 diff --git a/test/integration/render-tests/raster-loading/missing/style.json b/test/integration/render-tests/raster-loading/missing/style.json new file mode 100644 index 00000000000..e0fd4b09ba5 --- /dev/null +++ b/test/integration/render-tests/raster-loading/missing/style.json @@ -0,0 +1,37 @@ +{ + "version": 8, + "metadata": { + "test": { + "width": 64, + "height": 64, + "ignored": { + "js": "https://github.com/mapbox/mapbox-gl-js/issues/4257" + } + } + }, + "center": [ + 13.418056, + 52.499167 + ], + "zoom": 17, + "sources": { + "satellite": { + "type": "raster", + "tiles": [ + "local://tiles/{z}-{x}-{y}.satellite.png" + ], + "maxzoom": 18, + "tileSize": 256 + } + }, + "layers": [ + { + "id": "raster", + "type": "raster", + "source": "satellite", + "paint": { + "raster-fade-duration": 0 + } + } + ] +} \ No newline at end of file