You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to draw a polygon with the type line on the map but to the inside I need a filling (like a padding). Is that something what is possible? I found line with gap but instead of that second line I just need filling until the gap ends. I that something which is possible?
Is it possible to add a gap after the line and fill it with color and opacity?
Is it possible to stripe that gap like in the example screenshot below
I want to have a fill inbetween the lines (gap), and if possible dont even have the second line but the fill should stop there
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey Team,
I want to draw a polygon with the type line on the map but to the inside I need a filling (like a padding). Is that something what is possible? I found line with gap but instead of that second line I just need filling until the gap ends. I that something which is possible?
I want to have a fill inbetween the lines (gap), and if possible dont even have the second line but the fill should stop there

code Example
map.addLayer( { id: "color-layer", type: "line", source: "color-source", layout: {}, paint: { "line-color": "#8CF5FF", "line-gap-width": 10, }, }, colorFirstLayerId ); },
Any help is much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions