mapbox/mapbox-gl-js
Auf GitHub ansehenSymbol interpolation issue when icon-pitch-alignment is "map"
Open
#8.110 geöffnet am 2. Apr. 2019
bug :lady_beetle:good first issue
Repository-Metriken
- Stars
- (10.532 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
mapbox-gl-js version: v0.54.0-beta.1
browser: any
Steps to Trigger Behavior
- create a symbol layer with icon-pitch-alignment set to "map"
- do not rotate or pitch the map
Expected Behavior
Icon should be rendered with NEAREST interpolation
Actual Behavior
Icon is rendered with LINEAR interpolation
Hint: there is a condition in draw_symbol.js:197
pitchWithMap || tr.pitch !== 0
I think it should be just
tr.pitch !== 0
because when icon-pitch-alignment is set to "map", and neither the icon nor the map is rotated, NEAREST should be used. (same as "viewport" alignment)