-
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.
Creates two layers that both include a feature from the same source. Filter query results to just one of the layers.
- Loading branch information
Showing
2 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
test/integration/query-tests/regressions/mapbox-gl-js#5172/expected.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,13 @@ | ||
[ | ||
{ | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
}, | ||
"type": "Feature", | ||
"properties": {} | ||
} | ||
] |
70 changes: 70 additions & 0 deletions
70
test/integration/query-tests/regressions/mapbox-gl-js#5172/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,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" | ||
} | ||
} | ||
] | ||
} |