This repository has been archived by the owner on Dec 4, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.40.1
->^1.0.0
Release Notes
mapbox/mapbox-gl-js
v1.5.0
Compare Source
v1.4.1
Compare Source
v1.4.0
Compare Source
v1.3.2
Compare Source
v1.3.1
Compare Source
v1.3.0
Compare Source
🍏 Features
text-writing-mode
symbol layer property to allow placing point labels vertically. #8399text/icon-allow-overlap
is set totrue
. #8620text-color
to be used in formatted expressions to be able to draw different parts of a label in different colors. #8068✨ Improvements
map.showTileBoundaries = true
. #8380 (h/t @andrewharvey)MercatorCoordinate.meterInMercatorCoordinateUnits
method to make it easier to convert from meter units to coordinate values used in custom layers. #8524 (h/t @andrewharvey)mapbox-gl-js-docs
repo. #8582v1.2.1
Compare Source
🐞 Bug fixes
NavigationControl
compass button that prevented it from rotating with the map (#8605)v1.2.0
Compare Source
Features and improvements
*-sort-key
layout property for circle, fill, and line layers, to dictate which features appear above others within a single layer(#8467)prefers-reduced-motion
settings in browser (#8494)visualizePitch
option that tilts the compass as the map pitches (#8208, fixed by #8296) (h/t pakastin)convertFilter
API in the style specification (#8493Bug fixes
text-variable-anchor
, such that previous anchor positions would take precedence only if they are present in the updated array (considered a bug fix, but is technically a breaking change from previous behavior) (#8473)startPos
is not defined (#8462) (h/t @msbarry)baseAPIURL
of a certain form (#8466)v1.1.1
Compare Source
🐞 Bug fixes
v1.1.0
Compare Source
✨ Minor features and improvements
queryRenderedFeatures
andquerySourceFeatures
calls, as a performance optimization (#8211) (h/t gorshkov-leonid)setFilter
performance by caching keys ingroupByLayout
routine (#8122) (h/t vallendm)symbol-z-order: viewport-y
, when icons are allowed to overlap but not text (#8180)WebGLRenderingContext
argument toonRemove
function ofCustomLayerInterface
, to allow direct cleanup of related context (#8156) (h/t ogiermaitre)setZoomRate
andsetWheelZoomRate
methods toScrollZoomHandler
(#7863) (h/t sf31)trackPointer
method toPopup
API that continuously repositions the popup to the mouse cursor when the cursor is within the map (#7786)getElement
method toPopup
to retrieve the popup's HTML element (#8123) (h/t bravecow)fill-pattern
example to the documentation (#8022) (h/t flawyte)nofollow
to Mapbox logo & "Improve this map" links (#8106) (h/t viniciuskneves)🐞 Bug fixes
updateImage
not working as expected in Chrome (#8199)movestart
events when zooming (#8259) (h/t bambielli-flex)"format"
expression failing when options are provided (#8339)setPaintProperty
not working online-pattern
property (#8289)findStopLessThanOrEqualTo
algorithm (#8134) (h/t Mike96Angelo)text-align: center
(#8227) (h/t mc100s)Popup#maxWidth
accepts allmax-width
CSS values (#8312) (h/t viniciuskneves)v1.0.0
Compare Source
This release replaces the existing “map views” pricing model in favor of a “map load” model. Learn more in a recent blog post about these changes.
By upgrading to this release, you are opting in to the new map loads pricing.
Why is this change being made?
This change allows us to implement a more standardized and predictable method of billing GL JS map usage. You’ll be charged whenever your website or web application loads, not by when users pan and zoom around the map, incentivizing developers to create highly interactive map experiences. The new pricing structure also creates a significantly larger free tier to help developers get started building their applications with Mapbox tools while pay-as-you-go pricing and automatic volume discounts help your application scale with Mapbox. Session billing also aligns invoices with metrics web developers already track and makes it easier to compare usage with other mapping providers.
What is changing?
When (and only when) loading tiles from a Mapbox API with a Mapbox access token set (
mapboxgl.accessToken
), a query parameter namedsku
will be added to all requests for vector, raster and raster-dem tiles. Every map instance uses a uniquesku
value, which is refreshed every 12 hours. The token itself is comprised of a token version (always “1”), a sku ID (always “01”) and a random 10-digit base-62 number. The purpose of the token is to allow for metering of map sessions on the server-side. A session lasts from a new map instantiation until the map is destroyed or 12 hours passes, whichever comes first.For further information on the pricing changes, you can read our blog post and check out our new pricing page, which has a price calculator. As always, you can also contact our team at https://support.mapbox.com.
v0.54.1
Compare Source
Bug fixes
v0.54.0
Compare Source
Breaking changes
localIdeographFontFamily
map option on by default. This may change how CJK labels are rendered, but dramatically improves performance of CJK maps (because the browser no longer needs to download heavy amounts of font data from the server). AddlocalIdeographFontFamily: false
to turn this off. #8008Popup
maxWidth
option, set to"240px"
by default. #7906Major features
mapbox-gl-csp.js
bundle for strict CSP environments whereworker-src: blob
is disallowed. #8044Minor features and improvements
"visibility": "visible"
. #8005rel="noopener"
attributes to links that lead to external websites (such as Mapbox logo and OpenStreetMap edit link) for improved security. #7914map.showTileBoundaries
is turned on. #7963canvasSource.pause
to be more reliable and able to render a single frame. #8130Bug fixes
source.setData(url)
many times. #8035map.getCenter()
returned a reference to an internalLngLat
object instead of cloning it, leading to potential mutability bugs. #7922Map#removeFeatureState
does not remove the state from some tile zooms #8087removeFeatureState
didn't work on features withid
equal to0
. #8150 (h/t jutaz)v0.53.1
Compare Source
Bug fixes
v0.53.0
Compare Source
Features and improvements
fill-extrusion
querying with ray picking (#7499)clusterProperties
option for aggregated cluster properties (#2412, fixed by #7584)fitBounds
options. (#7681) (h/t elyobo)Map#remove
(#7749) (h/t andycalder)Map#removeFeatureState
(#7761)number-format
expression (#7626)symbol-sort-key
style property (#7678)Bug fixes
file://
protocol in XHR requests for Cordova/Ionic/etc (#7818)LngLat.toBounds()
default radius to 0 (#7722, fixed by #7723) (h/t cherniavskii)feature-state
dependent layers (#7523, fixed by #7790)map.repaint
from mistakenly enabling continuous repaints (#7667)v0.52.0
Compare Source
Breaking changes
mapbox://
urls so they can be transformed withconfig.API_URL
(#7594)Features and improvements
config.API_URL
(#7594)Bug fixes
v0.51.0
Compare Source
November 7, 2018
✨ Features and improvements
MercatorCoordinate
type (#7488)contextmenu
to be enabled (#2301, fixed by #7369)LngLat
conversion from{lat, lon}
(#7507) (h/t bfrengley)feature-state
expressions in filters (#7366)🐛 Bug fixes
hash
within iframes in IE11 (#7411)v0.50.0
Compare Source
October 10, 2018
✨ Features and improvements
concat
expression andtext-field
property (#6190, fixed by #7280)fill-extrusion-vertical-gradient
property for controlling shading of fill extrusions (#5768, fixed by #6841)ImageSource
(#4050, fixed by #7342) (h/t dcervelli)🐛 Bug fixes
_ Fix expressions that use
log2
andlog10
in IE11 (#7318, fixed by #7320)_ Fix
let
expression stripping expected type during parsing (#7300, fixed by #7301)_ Fix superfluous wrapping of literals in
literal
expression (#7336, fixed by #7337)_ Allow calling
to-color
on values that are already of typeColor
(#7260)_ Fix
to-array
for empty arrays ((#7261))_ Fix identity functions for
text-field
when using formatted text (#7351)* Fix coercion of
null
to0
into-number
expression (#7083, fixed by #7274)_ Fix missing repeats of
CanvasSource
when it crosses the antimeridian (#7273)_ Fix
CanvasSource
not respecting alpha values set oncanvas
element (#7302, fixed by #7309)_ Fix rendering of fill extrusions with really high heights (#7292)
_ Fix an error where the map state wouldn't return to
loaded
after certain runtime styling changes when there were errored tiles in the viewport (#7355)_ Fix errors when rendering symbol layers without symbols (#7241, fixed by #7253)
_ Don't fade in symbols with
*-allow-overlap: true
when panning into the viewport (#7172, fixed by#7244)_ Fix disambiguation for
mouseover
event (#7295, fixed by #7299)_ Fix silent failure of
getImage
if an SVG is requested (#7312, fixed by #7313)_ Fix empty control group box shadow (#7303, fixed by #7304) (h/t Duder-onomy)
_ Fixed an issue where a wrong timestamp was sent for Mapbox turnstile events (#7381)
* Fixed a bug that lead to attribution not showing up correctly in Internet Explorer (#3945, fixed by #7391)
v0.49.0
Compare Source
September 6, 2018
client{Height/Width}
instead ofoffset{Height/Width}
for map canvas sizing (#6848, fixed by #7128)🐛 Bug fixes
icon-allow-overlap: true, text-allow-overlap: true, text-optional: false
would show icons when they shouldn't (#7041)gl-style-migrate
script to include conversion of legacy functions and filters to their expression equivalents (#6927, fixed by #7095)icon-size
for small data-driven values (#7125)✨ Features and improvements
symbol-z-order
symbol layout property to style spec (#7219)*-pattern properties
(#6289)Map#fitScreenCoordinates
which fits viewport to two points, similar toMap#fitBounds
but uses screen coordinates and supports non-zero map bearings (#6894)Map#setFeatureState
andMap#getFeatureState
to accept numeric IDs (#7106) (h/t bfrengley)v0.48.0
Compare Source
August 16, 2018
🐛 Bug fixes
text-max-angle
property was being calculated incorrectly internally, causing potential rendering errors when"symbol-placement": line
feature.id
when usingMap#setFeatureState
(#6974)GeolocateControl
when user location is being used (#6977) (h/t sergei-zelinsky)Map#querySourceFeatures
was returning bad results on zooms > maxZoom (#7061)queryPadding
for all layers in a source was set by the first layer, causing incorrect querying on other layers and, in some cases, incorrect firing of events associated with individual layers (#6909)✨ Features and improvements
{Glyph/Image}Atlas
es (#7091)Map#setFeatureState
API (#7043)) (#7091)"format"
expression (#6994)v0.47.0
Compare Source
✨ Features and improvements
raster-resampling
raster paint property (#6411) (h/t andrewharvey)symbol-placement: line-center
(#6821)🐛 Bug fixes
v0.46.0
Compare Source
match
expressions with withcase/==
(#6684)✨ Features and improvements
Map#setFeatureState
andfeature-state
expression to support interactive styling (#6263)Marker
withsetDraggable
(#6687)Map#listImages
for listing all currently active sprites/images (#6381)text/icon-rotate
for symbols withsymbol-placement: point
(#6075)collectResourceTiming: true
in web workers (#6721)🐛 Bug fixes
collectResourceTiming: true
generates error on iOS9 Safari, IE 11 (#6690)lineMetrics=true
only rendered first line (#6649)a
element does not open the url when clicked (#6730)setRTLTextPlugin
fails with relative URLs (#6719)(#6559)
v0.45.0
Compare Source
Evented#fire
andEvented#listens
are now marked as private. ThoughEvented
is still exported, andfire
andlistens
are still functional, we encourage you to seek alternatives; a future version may remove their API accessibility or change its behavior. If you are writing a class that needs event emitting functionality, consider usingEventEmitter
or similar libraries instead."to-string"
expression operator now convertsnull
to an empty string rather than to"null"
. #6534✨ Features and improvements
line-gradient
property #6303abs
,round
,floor
, andceil
expression operators #6496collator
expression for controlling case and diacritic sensitivity in string comparisons #6270caseSensitive
anddiacriticSensitive
expressions tocase-sensitive
anddiacritic-sensitive
for consistency #6598collator
expressions for evaluating as constant to account for potential environment-specific differences in expression evaluation #6596raster-dem
tilesets #6103Map#isZooming
andMap#isRotating
methods #6128, #6183raster-dem
sources #6110preventDefault
method onmousedown
,touchstart
, anddblclick
events #6218originalEvent
property onzoomend
andmoveend
for user-initiated scroll events (h/t @stepankuzmin) #6175value
in"length"
expressions #6244MapWheelEvent
#6237ScaleControl
units (h/t @ryanhamley) #6138, #6274open
event forPopup
#6311"object"
type assertions are no longer required when using expressions #6235anchor
option toMarker
#6350HTMLElement
is now passed toMarker
as part of theoptions
object, but the old function signature is still supported for backwards compatibility #6356Marker
SVG element (h/t @andrewharvey) #6416CanvasSource
initialization fromHTMLElement
#6424is-supported-script
expression 6260🐛 Bug fixes
raster-dem
tiles to pixel grid to eliminate blurry rendering on some devices #6059Map#queryRenderedFeatures
bugs:{text, icon}-offset
when querying#6135circle
layer features with-pitch-scaling: 'viewport'
or-pitch-alignment: 'map'
#6036Map
hash #6140Map#addLayer
is invoked with anid
of a preexisting layer #6147icon-image
would not be rendered iftext-field
is an empty string #6164rotatestart
androtateend
events #6187Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.