-
-
Notifications
You must be signed in to change notification settings - Fork 768
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing labels not appearing when enabling terrain at high zoom (#3545)
* Fixing bug by reloading terrain source on render following terrain change, fixing typos * Making fix more robust * Removing reference to Mapbox in test * Adding tests * Updating changelog * Reloading sourceCache immediately on terrain add * Removing timed waits from render test
- Loading branch information
1 parent
c6f3a11
commit 2db2f4e
Showing
13 changed files
with
244 additions
and
30 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
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
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
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
-48 Bytes
(99%)
test/integration/render/tests/symbol-geometry/point/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
115 changes: 115 additions & 0 deletions
115
test/integration/render/tests/terrain/symbol-add-terrain/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,115 @@ | ||
{ | ||
"version": 8, | ||
"sprite": "local://sprites/sprite", | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"timeout": 60000, | ||
"metadata": { | ||
"test": { | ||
"height": 512, | ||
"width": 512, | ||
"operations": [ | ||
[ | ||
"wait" | ||
], | ||
[ | ||
"setTerrain" | ||
], | ||
[ | ||
"wait" | ||
], | ||
[ | ||
"setTerrain", | ||
{ | ||
"source": "terrain", | ||
"exaggeration": 1 | ||
} | ||
], | ||
[ | ||
"wait" | ||
] | ||
] | ||
} | ||
}, | ||
"center": [ | ||
35.38, | ||
31.55 | ||
], | ||
"zoom": 16.25, | ||
"pitch": 53, | ||
"sources": { | ||
"hillshadeSource": { | ||
"type": "raster-dem", | ||
"tiles": [ | ||
"local://tiles/terrain/{z}-{x}-{y}.terrain.png" | ||
], | ||
"minzoom": 0, | ||
"maxzoom": 12 | ||
}, | ||
"terrain": { | ||
"type": "raster-dem", | ||
"tiles": [ | ||
"local://tiles/terrain/{z}-{x}-{y}.terrain.png" | ||
], | ||
"minzoom": 7, | ||
"maxzoom": 12, | ||
"tileSize": 256 | ||
}, | ||
"geometry": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
35.38, | ||
31.55 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "hills", | ||
"type": "hillshade", | ||
"source": "hillshadeSource", | ||
"layout": { | ||
"visibility": "visible" | ||
}, | ||
"paint": { | ||
"hillshade-shadow-color": "#473B24", | ||
"hillshade-illumination-anchor": "map", | ||
"hillshade-illumination-direction": 150 | ||
} | ||
}, | ||
{ | ||
"id": "geometry", | ||
"type": "symbol", | ||
"source": "geometry", | ||
"layout": { | ||
"icon-image": "rocket-12", | ||
"text-field": "MapLibre", | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"text-allow-overlap": true, | ||
"text-ignore-placement": true, | ||
"text-offset": [ | ||
0, | ||
1 | ||
] | ||
} | ||
} | ||
], | ||
"terrain": { | ||
"source": "terrain", | ||
"exaggeration": 1 | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.