core, android: add support for camera roll (#3011)

This commit is contained in:
Nathan Olson
2026-01-20 00:57:48 -08:00
committed by GitHub
parent a4cf4d3ffa
commit 10dbd5d68d
57 changed files with 1275 additions and 207 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

View File

@@ -0,0 +1,37 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"bearing": 45,
"pitch": 45,
"roll": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates": [
0,
0
]
}
}
},
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"icon-rotation-alignment": "map",
"icon-image": "oneway"
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

View File

@@ -0,0 +1,36 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"bearing": 45,
"roll": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates": [
0,
0
]
}
}
},
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"icon-rotation-alignment": "auto",
"icon-image": "oneway"
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

View File

@@ -0,0 +1,38 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"bearing": 45,
"pitch": 45,
"roll": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates": [
0,
0
]
}
}
},
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"icon-rotation-alignment": "viewport",
"icon-pitch-alignment": "map",
"icon-image": "oneway"
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

View File

@@ -0,0 +1,38 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"bearing": 45,
"pitch": 45,
"roll": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates": [
0,
0
]
}
}
},
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"icon-rotation-alignment": "map",
"icon-pitch-alignment": "viewport",
"icon-image": "oneway"
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -0,0 +1,58 @@
{
"version": 8,
"metadata": {
"test": {
"height": 256,
"operations": [
[ "setBearing", 90 ],
[ "setPitch", 40 ],
[ "setRoll", 90 ],
[ "wait" ]
]
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"sources": {
"maplibre": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "line-placement-true",
"type": "symbol",
"source": "maplibre",
"source-layer": "road",
"layout": {
"symbol-placement": "line",
"text-allow-overlap": true,
"text-ignore-placement": true,
"text-field": "{class} {class}",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-keep-upright": true
},
"paint": {
"text-opacity": 1
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -0,0 +1,56 @@
{
"version": 8,
"metadata": {
"test": {
"height": 256,
"operations": [
[ "setRoll", 180 ],
[ "wait" ]
]
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"sources": {
"maplibre": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "line-placement-true",
"type": "symbol",
"source": "maplibre",
"source-layer": "road",
"layout": {
"symbol-placement": "line",
"text-allow-overlap": true,
"text-ignore-placement": true,
"text-field": "{class} {class}",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-keep-upright": true
},
"paint": {
"text-opacity": 1
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View File

@@ -0,0 +1,65 @@
{
"version": 8,
"metadata": {
"test": {
"collisionDebug": true,
"height": 512
}
},
"center": [
13.418056,
52.499167
],
"zoom": 16,
"pitch": 30,
"roll": 180,
"sources": {
"maplibre": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "road",
"type": "line",
"source": "maplibre",
"source-layer": "road",
"paint": {
"line-color": "#888",
"line-width": 1
}
},
{
"id": "text",
"type": "symbol",
"source": "maplibre",
"source-layer": "road_label",
"layout": {
"symbol-placement": "line",
"symbol-spacing": 60,
"text-rotation-alignment": "map",
"text-pitch-alignment": "auto",
"text-field": "{class}",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
},
"paint": {
"text-opacity": 1
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 B

View File

@@ -0,0 +1,47 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128
}
},
"roll": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "LineString",
"coordinates": [
[
-40,
0
],
[
40,
0
]
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "line",
"symbol-spacing": 20,
"text-allow-overlap": true,
"text-rotation-alignment": "auto",
"text-field": "-->",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

View File

@@ -0,0 +1,39 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128
}
},
"roll": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates": [
0,
0
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"text-rotation-alignment": "auto",
"text-field": "-->",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 B

View File

@@ -0,0 +1,47 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128
}
},
"roll": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "LineString",
"coordinates": [
[
-40,
0
],
[
40,
0
]
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "line",
"symbol-spacing": 20,
"text-allow-overlap": true,
"text-rotation-alignment": "map",
"text-field": "-->",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

View File

@@ -0,0 +1,39 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128
}
},
"roll": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates": [
0,
0
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"text-rotation-alignment": "map",
"text-field": "-->",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 874 B

View File

@@ -0,0 +1,47 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128
}
},
"roll": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "LineString",
"coordinates": [
[
-40,
0
],
[
40,
0
]
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "line",
"symbol-spacing": 20,
"text-allow-overlap": true,
"text-rotation-alignment": "viewport",
"text-field": "-->",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

View File

@@ -0,0 +1,39 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128
}
},
"roll": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates": [
0,
0
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"text-rotation-alignment": "viewport",
"text-field": "-->",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}