clusterProperties
option for aggregated cluster properties (#2412, fixed by #7584)number-format
expression (#7626)symbol-sort-key
style property (#7678)let
expression stripping expected type during parsing (#7300, fixed by #7301)literal
expression (#7336, fixed by #7337)to-color
on values that are already of type Color
(#7260)to-array
for empty arrays ((#7261))text-field
when using formatted text (#7351)null
to 0
in to-number
expression (#7083, fixed by #7274)fill-extrusion-vertical-gradient
property for controlling shading of fill extrusions (#5768, fixed by #6841)gl-style-migrate
script to include conversion of legacy functions and filters to their expression equivalents (#6927, fixed by #7095)symbol-z-order
symbol layout property to style spec (#7219)*-pattern properties
(#6289)raster-resampling
raster paint property (#6411) (h/t andrewharvey)symbol-placement: line-center
(#6821)match
expressions with with case/==
(#6684)feature-state
#6263Malformed package published to NPM.
"to-string"
expression operator now converts null to an empty string rather than to "null"
. #6534is-supported-script
expression for determining if a script is supported. #6260collator
expression for controlling case and diacritic sensitivity in string comparisons #6270abs
, round
, floor
, and ceil
expression operators #6496text-font
, and heatmap-color
, and hillshade
layer properties.new Function
for filters by converting old-style filters to expressions #5665."colorSpace": "hcl"
now uses shortest-path interpolation for hue #5811raster-dem
source type and hillshade
layer type #5286==
and !=
expressions #5840coalesce
expressions more useful #5755to-string
representation of colors #5480mapbox-gl-style-spec
package on NPM from being used externally #5502function
#5584StylePropertySpecification
type #5593source_tile
entry in the JSON schema into source_vector
and source_raster
#5604heatmap-color
use expressions instead of stop functions #5624{tokens}
in expressions for text-field
and icon-image
#5599line-dasharray
#5519step
and interpolate
expressions don't have any duplicate stops #5605curve
expression into step
and interpolate
expressions #5542fast-stable-stringify
dependency (#5152)function
module has changed. The interpolated
and piecewise-constant
exports
were replaced with a single unnamed export, a function which accepts an object conforming to the style spec "function"
definition, and an object defining a style spec property. It handles color parsing and validation of feature values
internally.parseColor
was promoted from gl-js.feature-filter
repository into this repository #639v8.0.0 styles are fully compatible with v8.10.0.
colorSpace
option to functionsfill-extrusion
layer typelight
propertymaxzoom
to 24deref
utilitygroup_by_layout
utilitymapbox-gl-function
repository into this repositoryv8.0.0 styles are fully compatible with v8.9.0.
auto
value which represents the calculated default valuev8.0.0 styles are fully compatible with v8.8.1.
v8.0.0 styles are fully compatible with v8.8.0.
v8.0.0 styles are fully compatible with v8.7.0.
v8.0.0 styles are fully compatible with v8.6.0.
v8.0.0 styles are fully compatible with v8.4.2.
v8.0.0 styles are fully compatible with v8.4.1.
v8.0.0 styles are fully compatible with v8.4.0.
cluster
, clusterRadius
, clusterMaxZoom
GeoJSON source properties.v8.0.0 styles are fully compatible with v8.3.0.
line-offset
style propertyv8.0.0 styles are fully compatible with v8.2.1.
v8.0.0 styles are fully compatible with v8.2.0.
example
property.doc
property.doc
and example
properties removed.validate
now validates against minified style spec.format
now accepts space
option to use with JSON.stringify
.gl-style-spritify
. Mapbox GL sprites are now created automatically by
the Mapbox style APIs, or for hand-crafted styles, by spritezero-cli.v8.0.0 styles are fully compatible with v8.1.0.
constants
from schema, they were deprecated in v8visibility
property to circle
layer typepitch
property to stylesheetIntroduction of Mapbox GL style specification v8. To migrate a v7 style to v8,
use the gl-style-migrate
script as described in the README.
text-font
property is now an array of
strings, rather than a single comma separated string.symbol-min-distance
to symbol-spacing
.background-image
to background-pattern
.line-image
to line-pattern
.fill-image
to fill-pattern
.url
property of the video source type to urls
.text-max-size
and icon-max-size
properties; these
are now calculated automatically.text-size
and icon-size
are now layout properties instead of paint properties.mapbox://
glyphs URLs has changed; you should
now use mapbox://fonts/mapbox/{fontstack}/{range}.pbf
.image
source type.circle
layer type.mapbox://
sprite URLs mapbox://sprite/{user | "mapbox"}/{id}
Introduction of Mapbox GL style specification v7.
Introduction of Mapbox GL style specification v6.
transition-*
-> *-transition
).minZoom
and maxZoom
renamed to minzoom
and `maxzoom to match TileJSON.mapbox://
glyph URLs.raster-fade
to raster-fade-duration
.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.