Skip to content

Commit

Permalink
Added camera/composite vector icons render tests (internal-2070)
Browse files Browse the repository at this point in the history
  • Loading branch information
underoot authored and mourner committed Dec 18, 2024
1 parent fcfe89c commit 7456532
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128,
"spriteFormat": "icon_set"
}
},
"zoom": 1.99,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"sprite": "local://sprites/standard",
"layers": [
{
"id": "back",
"type": "background",
"paint": {
"background-color": "black"
}
},
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"icon-size": [
"interpolate",
["exponential", 2],
["zoom"],
1, 1,
2, 4
],
"icon-image": "alcohol-shop"
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128,
"spriteFormat": "icon_set"
}
},
"zoom": 1.69,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"start": 0,
"stop": 1
},
"geometry": {
"type": "Point",
"coordinates": [-5, -5]
}
},
{
"type": "Feature",
"properties": {
"start": 1,
"stop": 0
},
"geometry": {
"type": "Point",
"coordinates": [5, 5]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"sprite": "local://sprites/standard",
"layers": [
{
"id": "back",
"type": "background",
"paint": {
"background-color": "black"
}
},
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"icon-size": [
"interpolate",
["linear"],
["zoom"],
1, ["get", "start"],
2, ["get", "stop"]
],
"icon-image": "alcohol-shop"
}
}
]
}

0 comments on commit 7456532

Please # to comment.