##  line  â

A ` line ` style layer renders one or more stroked polylines on the map. You
can use a line layer to configure the visual appearance of polyline or
multipolyline features.

This map of a [ Strava ](https://blog.mapbox.com/strava-launches-gorgeous-new-
outdoor-maps-977c74cf37f9) user's hike through Grand Teton National Park uses
the [ ` line-color ` ](/style-spec/reference/layers/#paint-line-line-color)
and [ ` line-width ` ](/style-spec/reference/layers/#paint-line-line-width)
paint properties to style the strong red line of the user's route.

###  line-blur  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
number ](/style-spec/reference/types/#number) greater than or equal to ` 0 ` .
Units in  pixels  .  Defaults to ` 0 ` .  Supports  _[ combine  ` feature-
state ` ](/style-spec/reference/expressions/#feature-state) _ and [ smooth-
ramp  ` interpolate ` ](/style-spec/reference/expressions/#interpolate)
expressions.  opacity  Transitionable.

Blur applied to the line, in pixels.

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 0.10.0  |  >= 2.0.1  |  >= 2.0.0   
data-driven styling  |  >= 0.29.0  |  >= 5.0.0  |  >= 3.5.0   
  
###  line-cap  â

[ Layout ](/style-spec/reference/layers/#layout-property) property.  Optional
[ enum ](/style-spec/reference/types/#enum) .  One of  ` "butt" ` , ` "round"
` , ` "square" ` .  Defaults to ` "butt" ` .

The display of line endings.

` "butt" ` :

    

A cap with a squared-off end which is drawn to the exact endpoint of the line.

` "round" ` :

    

A cap with a rounded end which is drawn beyond the endpoint of the line at a
radius of one-half of the line's width and centered on the endpoint of the
line.

` "square" ` :

    

A cap with a squared-off end which is drawn beyond the endpoint of the line at
a distance of one-half of the line's width.

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 0.10.0  |  >= 2.0.1  |  >= 2.0.0   
data-driven styling  |  >= 2.3.0  |  Not yet supported  |  Not yet supported   
  
###  line-color  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
color ](/style-spec/reference/types/#color) .  Defaults to ` "#000000" ` .
_Disabled by_ line-pattern  .  Supports  _[ combine  ` feature-state `
](/style-spec/reference/expressions/#feature-state) _ and [ smooth-ramp  `
interpolate ` ](/style-spec/reference/expressions/#interpolate) expressions.
opacity  Transitionable.

The color with which the line will be drawn.

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 0.10.0  |  >= 2.0.1  |  >= 2.0.0   
data-driven styling  |  >= 0.23.0  |  >= 5.0.0  |  >= 3.5.0   
  
###  line-dasharray  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
array ](/style-spec/reference/types/#array) of  [ number  s ](/style-
spec/reference/types/#number) greater than or equal to ` 0 ` .  Units in  line
widths  .  _Disabled by_ line-pattern  .

Specifies the lengths of the alternating dashes and gaps that form the dash
pattern. The lengths are later scaled by the line width. To convert a dash
length to pixels, multiply the length by the current line width. Note that
GeoJSON sources with ` lineMetrics: true ` specified won't render dashed lines
to the expected scale. Also note that zoom-dependent expressions will be
evaluated only at integer zoom levels.

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 0.10.0  |  >= 2.0.1  |  >= 2.0.0   
data-driven styling  |  >= 2.3.0  |  Not yet supported  |  Not yet supported   
  
###  line-emissive-strength  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
number ](/style-spec/reference/types/#number) greater than or equal to ` 0 ` .
Units in  intensity  .  Defaults to `