-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
align projection matrix to pixel grids to draw crisp raster tiles
- Loading branch information
Showing
73 changed files
with
246 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Mapbox GL JS debug page</title> | ||
<meta charset='utf-8'> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||
<link rel='stylesheet' href='/dist/mapbox-gl.css' /> | ||
<style> | ||
body { margin: 0; padding: 0; } | ||
html, body, #map { height: 100%; } | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id='map'></div> | ||
|
||
<script src='/dist/mapbox-gl-dev.js'></script> | ||
<script src='/debug/access_token_generated.js'></script> | ||
<script> | ||
|
||
var map = window.map = new mapboxgl.Map({ | ||
container: 'map', | ||
zoom: 12.5, | ||
center: [-77.01866, 38.888], | ||
style: { | ||
"version": 8, | ||
"sources": { | ||
"raster-tiles": { | ||
"type": "raster", | ||
"url": "mapbox://mapbox.streets", | ||
"tileSize": 256 | ||
} | ||
}, | ||
"layers": [{ | ||
"id": "simple-tiles", | ||
"type": "raster", | ||
"source": "raster-tiles", | ||
"minzoom": 0, | ||
"maxzoom": 22 | ||
}] | ||
}, | ||
hash: true | ||
}); | ||
|
||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
test/integration/render-tests/background-opacity/image/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-605 Bytes
(91%)
...on/render-tests/combinations/background-opaque--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-601 Bytes
(91%)
...nder-tests/combinations/background-translucent--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-543 Bytes
(92%)
...n/render-tests/combinations/circle-translucent--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-558 Bytes
(91%)
...-tests/combinations/fill-extrusion-translucent--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-563 Bytes
(91%)
...egration/render-tests/combinations/fill-opaque--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-555 Bytes
(91%)
...ion/render-tests/combinations/fill-translucent--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+75 Bytes
(100%)
.../render-tests/combinations/heatmap-translucent--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+416 Bytes
(110%)
...ender-tests/combinations/hillshade-translucent--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-544 Bytes
(92%)
...ion/render-tests/combinations/line-translucent--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-126 Bytes
(98%)
...nder-tests/combinations/raster-translucent--background-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-531 Bytes
(92%)
...n/render-tests/combinations/raster-translucent--circle-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-437 Bytes
(92%)
...-tests/combinations/raster-translucent--fill-extrusion-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-417 Bytes
(92%)
...egration/render-tests/combinations/raster-translucent--fill-opaque/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-444 Bytes
(93%)
...ion/render-tests/combinations/raster-translucent--fill-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+110 Bytes
(100%)
.../render-tests/combinations/raster-translucent--heatmap-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6 Bytes
(100%)
...ender-tests/combinations/raster-translucent--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-551 Bytes
(92%)
...ion/render-tests/combinations/raster-translucent--line-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-621 Bytes
(91%)
...n/render-tests/combinations/raster-translucent--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-552 Bytes
(92%)
...n/render-tests/combinations/raster-translucent--symbol-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-545 Bytes
(92%)
...n/render-tests/combinations/symbol-translucent--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10 Bytes
(100%)
test/integration/render-tests/image/raster-brightness/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+90 Bytes
(100%)
test/integration/render-tests/image/raster-contrast/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+32 Bytes
(100%)
test/integration/render-tests/image/raster-hue-rotate/expected.png
Oops, something went wrong.
Binary file modified
BIN
+148 Bytes
(100%)
test/integration/render-tests/image/raster-opacity/expected.png
Oops, something went wrong.
Binary file modified
BIN
+30 Bytes
(100%)
test/integration/render-tests/image/raster-saturation/expected.png
Oops, something went wrong.
Binary file modified
BIN
+30 Bytes
(100%)
test/integration/render-tests/image/raster-visibility/expected.png
Oops, something went wrong.
Binary file modified
BIN
-10.5 KB
(96%)
test/integration/render-tests/raster-alpha/default/expected.png
Oops, something went wrong.
Binary file modified
BIN
+16.2 KB
(110%)
test/integration/render-tests/raster-brightness/default/expected.png
Oops, something went wrong.
Binary file modified
BIN
+31.2 KB
(120%)
test/integration/render-tests/raster-brightness/function/expected.png
Oops, something went wrong.
Binary file modified
BIN
+21.5 KB
(110%)
test/integration/render-tests/raster-brightness/literal/expected.png
Oops, something went wrong.
Binary file modified
BIN
+16.2 KB
(110%)
test/integration/render-tests/raster-contrast/default/expected.png
Oops, something went wrong.
Binary file modified
BIN
-4.94 KB
(98%)
test/integration/render-tests/raster-contrast/function/expected.png
Oops, something went wrong.
Binary file modified
BIN
+10.8 KB
(100%)
test/integration/render-tests/raster-contrast/literal/expected.png
Oops, something went wrong.
Binary file modified
BIN
+16.2 KB
(110%)
test/integration/render-tests/raster-hue-rotate/default/expected.png
Oops, something went wrong.
Binary file modified
BIN
+18.6 KB
(110%)
test/integration/render-tests/raster-hue-rotate/function/expected.png
Oops, something went wrong.
Binary file modified
BIN
+18.4 KB
(110%)
test/integration/render-tests/raster-hue-rotate/literal/expected.png
Oops, something went wrong.
Binary file modified
BIN
-40 Bytes
(99%)
test/integration/render-tests/raster-loading/missing/expected.png
Oops, something went wrong.
Binary file modified
BIN
+4.41 KB
(100%)
test/integration/render-tests/raster-masking/overlapping-zoom/expected.png
Oops, something went wrong.
Binary file modified
BIN
-4.19 KB
(97%)
test/integration/render-tests/raster-masking/overlapping/expected.png
Oops, something went wrong.
Binary file modified
BIN
+16.2 KB
(110%)
test/integration/render-tests/raster-opacity/default/expected.png
Oops, something went wrong.
Binary file modified
BIN
+21.7 KB
(110%)
test/integration/render-tests/raster-opacity/function/expected.png
Oops, something went wrong.
Binary file modified
BIN
+24.7 KB
(110%)
test/integration/render-tests/raster-opacity/literal/expected.png
Oops, something went wrong.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
test/integration/render-tests/raster-rotation/0/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256 | ||
} | ||
}, | ||
"center": [ | ||
13.418056, | ||
52.499167 | ||
], | ||
"zoom": 16, | ||
"bearing": 0, | ||
"sources": { | ||
"satellite": { | ||
"type": "raster", | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.satellite.png" | ||
], | ||
"maxzoom": 17, | ||
"tileSize": 256 | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "raster", | ||
"type": "raster", | ||
"source": "satellite", | ||
"paint": { | ||
"raster-fade-duration": 0 | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
test/integration/render-tests/raster-rotation/180/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256 | ||
} | ||
}, | ||
"center": [ | ||
13.418056, | ||
52.499167 | ||
], | ||
"zoom": 16, | ||
"bearing": 180, | ||
"sources": { | ||
"satellite": { | ||
"type": "raster", | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.satellite.png" | ||
], | ||
"maxzoom": 17, | ||
"tileSize": 256 | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "raster", | ||
"type": "raster", | ||
"source": "satellite", | ||
"paint": { | ||
"raster-fade-duration": 0 | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
test/integration/render-tests/raster-rotation/270/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256 | ||
} | ||
}, | ||
"center": [ | ||
13.418056, | ||
52.499167 | ||
], | ||
"zoom": 16, | ||
"bearing": 270, | ||
"sources": { | ||
"satellite": { | ||
"type": "raster", | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.satellite.png" | ||
], | ||
"maxzoom": 17, | ||
"tileSize": 256 | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "raster", | ||
"type": "raster", | ||
"source": "satellite", | ||
"paint": { | ||
"raster-fade-duration": 0 | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
test/integration/render-tests/raster-rotation/45/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256 | ||
} | ||
}, | ||
"center": [ | ||
13.418056, | ||
52.499167 | ||
], | ||
"zoom": 16, | ||
"bearing": 45, | ||
"sources": { | ||
"satellite": { | ||
"type": "raster", | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.satellite.png" | ||
], | ||
"maxzoom": 17, | ||
"tileSize": 256 | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "raster", | ||
"type": "raster", | ||
"source": "satellite", | ||
"paint": { | ||
"raster-fade-duration": 0 | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
test/integration/render-tests/raster-rotation/90/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256 | ||
} | ||
}, | ||
"center": [ | ||
13.418056, | ||
52.499167 | ||
], | ||
"zoom": 16, | ||
"bearing": 90, | ||
"sources": { | ||
"satellite": { | ||
"type": "raster", | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.satellite.png" | ||
], | ||
"maxzoom": 17, | ||
"tileSize": 256 | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "raster", | ||
"type": "raster", | ||
"source": "satellite", | ||
"paint": { | ||
"raster-fade-duration": 0 | ||
} | ||
} | ||
] | ||
} |
Binary file modified
BIN
+16.2 KB
(110%)
test/integration/render-tests/raster-saturation/default/expected.png
Oops, something went wrong.
Binary file modified
BIN
+21.3 KB
(110%)
test/integration/render-tests/raster-saturation/function/expected.png
Oops, something went wrong.
Binary file modified
BIN
+16.3 KB
(110%)
test/integration/render-tests/raster-saturation/literal/expected.png
Oops, something went wrong.
Binary file modified
BIN
+16.2 KB
(110%)
test/integration/render-tests/raster-visibility/visible/expected.png
Oops, something went wrong.
Binary file modified
BIN
-1.65 KB
(99%)
test/integration/render-tests/retina-raster/default/expected.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
test/integration/render-tests/runtime-styling/layer-add-raster/expected.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ntegration/render-tests/runtime-styling/set-style-layer-add-raster/expected.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...on/render-tests/runtime-styling/set-style-source-add-raster-inline/expected.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ation/render-tests/runtime-styling/set-style-source-add-raster-url/expected.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
.../integration/render-tests/runtime-styling/source-add-raster-inline/expected.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
test/integration/render-tests/runtime-styling/source-add-raster-url/expected.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-216 Bytes
(100%)
test/integration/render-tests/zoomed-raster/fractional/expected.png
Oops, something went wrong.
Binary file modified
BIN
-1.33 KB
(99%)
test/integration/render-tests/zoomed-raster/overzoom/expected.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
test/integration/render-tests/zoomed-raster/underzoom/expected.png
Oops, something went wrong.