This repository was archived by the owner on Dec 4, 2019. It is now read-only.
Open
Conversation
b68ce82 to
c73a674
Compare
c73a674 to
aafd5fa
Compare
aafd5fa to
31efc52
Compare
31efc52 to
1f5d600
Compare
1f5d600 to
97d6789
Compare
97d6789 to
6e7d6e2
Compare
6e7d6e2 to
e2a672e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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->^0.54.0Release Notes
mapbox/mapbox-gl-js
v0.54.1Compare Source
Bug fixes
v0.54.0Compare Source
Breaking changes
localIdeographFontFamilymap 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: falseto turn this off. #8008PopupmaxWidthoption, set to"240px"by default. #7906Major features
mapbox-gl-csp.jsbundle for strict CSP environments whereworker-src: blobis 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.showTileBoundariesis turned on. #7963canvasSource.pauseto be more reliable and able to render a single frame. #8130Bug fixes
source.setData(url)many times. #8035map.getCenter()returned a reference to an internalLngLatobject instead of cloning it, leading to potential mutability bugs. #7922Map#removeFeatureStatedoes not remove the state from some tile zooms #8087removeFeatureStatedidn't work on features withidequal to0. #8150 (h/t jutaz)v0.53.1Compare Source
Bug fixes
v0.53.0Compare Source
Features and improvements
fill-extrusionquerying with ray picking (#7499)clusterPropertiesoption for aggregated cluster properties (#2412, fixed by #7584)fitBoundsoptions. (#7681) (h/t elyobo)Map#remove(#7749) (h/t andycalder)Map#removeFeatureState(#7761)number-formatexpression (#7626)symbol-sort-keystyle 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-statedependent layers (#7523, fixed by #7790)map.repaintfrom mistakenly enabling continuous repaints (#7667)v0.52.0Compare 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.0Compare Source
November 7, 2018
✨ Features and improvements
MercatorCoordinatetype (#7488)contextmenuto be enabled (#2301, fixed by #7369)LngLatconversion from{lat, lon}(#7507) (h/t bfrengley)feature-stateexpressions in filters (#7366)🐛 Bug fixes
hashwithin iframes in IE11 (#7411)v0.50.0Compare Source
October 10, 2018
✨ Features and improvements
concatexpression andtext-fieldproperty (#6190, fixed by #7280)fill-extrusion-vertical-gradientproperty for controlling shading of fill extrusions (#5768, fixed by #6841)ImageSource(#4050, fixed by #7342) (h/t dcervelli)🐛 Bug fixes
_ Fix expressions that use
log2andlog10in IE11 (#7318, fixed by #7320)_ Fix
letexpression stripping expected type during parsing (#7300, fixed by #7301)_ Fix superfluous wrapping of literals in
literalexpression (#7336, fixed by #7337)_ Allow calling
to-coloron values that are already of typeColor(#7260)_ Fix
to-arrayfor empty arrays ((#7261))_ Fix identity functions for
text-fieldwhen using formatted text (#7351)* Fix coercion of
nullto0into-numberexpression (#7083, fixed by #7274)_ Fix missing repeats of
CanvasSourcewhen it crosses the antimeridian (#7273)_ Fix
CanvasSourcenot respecting alpha values set oncanvaselement (#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
loadedafter 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: truewhen panning into the viewport (#7172, fixed by#7244)_ Fix disambiguation for
mouseoverevent (#7295, fixed by #7299)_ Fix silent failure of
getImageif 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.0Compare 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: falsewould show icons when they shouldn't (#7041)gl-style-migratescript to include conversion of legacy functions and filters to their expression equivalents (#6927, fixed by #7095)icon-sizefor small data-driven values (#7125)✨ Features and improvements
symbol-z-ordersymbol layout property to style spec (#7219)*-pattern properties(#6289)Map#fitScreenCoordinateswhich fits viewport to two points, similar toMap#fitBoundsbut uses screen coordinates and supports non-zero map bearings (#6894)Map#setFeatureStateandMap#getFeatureStateto accept numeric IDs (#7106) (h/t bfrengley)v0.48.0Compare Source
August 16, 2018
🐛 Bug fixes
text-max-angleproperty was being calculated incorrectly internally, causing potential rendering errors when"symbol-placement": linefeature.idwhen usingMap#setFeatureState(#6974)GeolocateControlwhen user location is being used (#6977) (h/t sergei-zelinsky)Map#querySourceFeatureswas returning bad results on zooms > maxZoom (#7061)queryPaddingfor 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}Atlases (#7091)Map#setFeatureStateAPI (#7043)) (#7091)"format"expression (#6994)v0.47.0Compare Source
✨ Features and improvements
raster-resamplingraster paint property (#6411) (h/t andrewharvey)symbol-placement: line-center(#6821)🐛 Bug fixes
v0.46.0Compare Source
matchexpressions with withcase/==(#6684)✨ Features and improvements
Map#setFeatureStateandfeature-stateexpression to support interactive styling (#6263)MarkerwithsetDraggable(#6687)Map#listImagesfor listing all currently active sprites/images (#6381)text/icon-rotatefor symbols withsymbol-placement: point(#6075)collectResourceTiming: truein web workers (#6721)🐛 Bug fixes
collectResourceTiming: truegenerates error on iOS9 Safari, IE 11 (#6690)lineMetrics=trueonly rendered first line (#6649)aelement does not open the url when clicked (#6730)setRTLTextPluginfails with relative URLs (#6719)(#6559)
v0.45.0Compare Source
Evented#fireandEvented#listensare now marked as private. ThoughEventedis still exported, andfireandlistensare 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 usingEventEmitteror similar libraries instead."to-string"expression operator now convertsnullto an empty string rather than to"null". #6534✨ Features and improvements
line-gradientproperty #6303abs,round,floor, andceilexpression operators #6496collatorexpression for controlling case and diacritic sensitivity in string comparisons #6270caseSensitiveanddiacriticSensitiveexpressions tocase-sensitiveanddiacritic-sensitivefor consistency #6598collatorexpressions for evaluating as constant to account for potential environment-specific differences in expression evaluation #6596raster-demtilesets #6103Map#isZoomingandMap#isRotatingmethods #6128, #6183raster-demsources #6110preventDefaultmethod onmousedown,touchstart, anddblclickevents #6218originalEventproperty onzoomendandmoveendfor user-initiated scroll events (h/t @stepankuzmin) #6175valuein"length"expressions #6244MapWheelEvent#6237ScaleControlunits (h/t @ryanhamley) #6138, #6274openevent forPopup#6311"object"type assertions are no longer required when using expressions #6235anchoroption toMarker#6350HTMLElementis now passed toMarkeras part of theoptionsobject, but the old function signature is still supported for backwards compatibility #6356MarkerSVG element (h/t @andrewharvey) #6416CanvasSourceinitialization fromHTMLElement#6424is-supported-scriptexpression 6260🐛 Bug fixes
Align
raster-demtiles to pixel grid to eliminate blurry rendering on some devices #6059Fix label collision circle debug drawing on overzoomed tiles #6073
Improve error reporting for some failed requests #6126, #6032
Fix several
Map#queryRenderedFeaturesbugs:{text, icon}-offsetwhen querying#6135circlelayer features with-pitch-scaling: 'viewport'or-pitch-alignment: 'map'#6036Preserve browser history state when updating the
Maphash #6140Fix undefined behavior when
Map#addLayeris invoked with anidof a preexisting layer #6147Fix bug where
icon-imagewould not be rendered iftext-fieldis an empty string #6164Ensure all camera methods fire
rotatestartandrotateendevents #6187Always hide duplicate labels #6166
Fix
DragHandlerbugs where a left-button mouse click would end a right-button drag rotate and a drag gesture would not end if the control key is down onmouseup#6193Add support for calling
{DragPanHandler, DragRotateHandler}#disablewhile a gesture is in progress #6232Fix
GeolocateControluser location dot sizing whenMap's<div>inheritsbox-sizing: border-box;(h/t @andrewharvey) #6227Fix bug causing an off-by-one error in
arrayexpression error messages (h/t @drewbo) #6269Improve error message when an invalid access token triggers a 401 error #6283
Fix bug where lines with
line-widthlarger than the sprite height of theline-patternproperty would render other sprite images #6246Fix broken touch events for
DragPanHandleron mobile using Edge (note that zoom/rotate/pitch handlers still do not support Edge touch events #1928) #6325Fix race condition in
VectorTileWorkerSource#reloadTilecausing a rendering timeout #6308Fix bug causing redundant
gl.stencilFunccalls due to incorrect state checking (h/t @yangdonglai) #6330Fix bug where
mousedownortouchstartwould cancel camera animations in non-interactive maps #6338Fix bug causing a full-screen flicker when the map is pitched and a symbol layer uses non-zero
text-translate#6365Fix bug in
to-rgbaexpression causing division by zero 6388Fix bug in cross-fading for
*-patternproperties with non-integer zoom stops #6430Fix bug where calling
Map#removeon a map with constructor optionhash: truethrows an error (h/t @allthesignals) #6490Fix bug causing flickering when panning across the anti-meridian #6438
Fix error when using tiles of non-power-of-two size #6444
Fix bug causing
Map#moveLayer(layerId, beforeId)to remove the layer whenlayerId === beforeId#6542Fix Rollup build for style-spec module 6575
Fix bug causing
Map#querySourceFeaturesto throw anUncaught TypeError(#6555)Fix issue where label collision detection was inaccurate for some symbol layers that shared layout properties with another layer #6558
Restore
targetproperty formouse{enter,over,leave,out}events #6623v0.44.2Compare Source
🐛 Bug fixes
v0.44.1Compare Source
🐛 Bug fixes
map.queryRenderedFeatures()#6074v0.44.0Compare Source
✨ Features and improvements
script-src 'unsafe-eval'#559LngLatBounds#isEmpty()method #5917collectResourceTimingoption to the enable collection of Resource Timing data for requests that are made from Web Workers. (#5948)🐛 Bug fixes
==and!=expressions #5947renderWorldCopies#5932Map#remove()#5943, #5951GeoJSONSource#setData()caused labels to fade out and back in (#6002)moveevents to be fired out of sync with actual map movements (#6005)Mapdid not firemouseoverevents (#6000] (h/t @jay-manday)v0.43.0Compare Source
beforeparameter tomoveLayerdoes not exist #5679"colorSpace": "hcl"now uses shortest-path interpolation for hue #5811✨ Features and improvements
raster-demsource type andhillshadelayer type #5286Map#hasImage#5775==and!=expressions #5840coalesceexpressions more useful #5755supported()now returns false on old IE 11 versions that don't support Web Worker blob URLs #5801🐛 Bug fixes
to-rgbaandrgbaexpressions #5778, #5866*-patternandline-dasharray#5791colorSpacefunction property #5843v0.42.2Compare Source
🐛 Bug fixes
v0.42.1Compare Source
🐛 Bug fixes
map.showCollisionBoxesis set tofalse#5673heatmap-color#5682history.replaceStateerror #5613✨ Features and improvements
Renovate 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.