|
I'm displaying a polyline, I can see it, but it's width does not change with zoom. Did I make something wrong ? <GeoJSONSource id="trails" data={this.state.trailsGeoJSON}>
<Layer
id="trail-lines-casing"
type="line"
paint={{
'line-color': '#ffffff',
'line-width': ['interpolate', ['linear'], ['zoom'], 10, 2, 14, 5, 18, 10],
'line-opacity': 0.6,
}}
layout={{
'line-cap': 'round',
'line-join': 'round',
}}
/> |
Answered by
softlion
Mar 17, 2026
Replies: 1 comment
|
interpolate linear has only 4 parameters ... closing. |
0 replies
Answer selected by
KiwiKilian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
interpolate linear has only 4 parameters ... closing.