Skip to content

Commit

Permalink
Regression test for issue #5172.
Browse files Browse the repository at this point in the history
Creates two layers that both include a feature from the same source. Filter query results to just one of the layers.
  • Loading branch information
ChrisLoer committed Nov 17, 2017
1 parent 6156297 commit 6291613
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
@@ -0,0 +1,13 @@
[
{
"geometry": {
"type": "Point",
"coordinates": [
0,
0
]
},
"type": "Feature",
"properties": {}
}
]
@@ -0,0 +1,70 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128,
"queryGeometry": [
64,
64
],
"queryOptions": {
"layers": ["iconlayer"]
}
}
},
"zoom": 0,
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"sprite": "local://sprites/sprite",
"sources": {
"source": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [0, 0]
}

}]
}
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "iconlayer",
"type": "symbol",
"source": "source",
"layout": {
"icon-image": "building-12",
"icon-allow-overlap": true
}
},
{
"id": "textlayer",
"type": "symbol",
"source": "source",
"layout": {
"text-field": "ABC",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-size": 24,
"text-offset": [0, 0]
},
"paint": {
"text-color": "green"
}
}
]
}

0 comments on commit 6291613

Please sign in to comment.