A WebGL interactive maps library
Published Node.js and peer-dependency requirements.
No declared requirement changes.
7 May 2018 · Newest first
Last checked
Checking sources…
Showing 1 of 1 releases. Full release notes.
Signals highlight changes worth reviewing. They cannot determine whether your application is affected.
Explicit
"object"type assertions are no longer required when using expressions #6235
Evented#fire and Evented#listens are now marked as private. Though Evented is still exported, and fire and listens 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 using EventEmitter or similar libraries instead."to-string" expression operator now converts null to an empty string rather than to "null". #6534line-gradient property #6303abs, round, floor, and ceil expression operators #6496collator expression for controlling case and diacritic sensitivity in string comparisons #6270raster-dem tilesets #6103Map#isZooming and Map#isRotating methods #6128, #6183raster-dem sources #6110preventDefault method on mousedown, touchstart, and dblclick events #6218originalEvent property on zoomend and moveend for user-initiated scroll events (h/t @stepankuzmin) #6175value in "length" expressions #6244MapWheelEvent#6237ScaleControl units (h/t @ryanhamley) #6138, #6274open event for Popup #6311"object" type assertions are no longer required when using expressions #6235anchor option to Marker #6350HTMLElement is now passed to Marker as part of the options object, but the old function signature is still supported for backwards compatibility #6356Marker SVG element (h/t @andrewharvey) #6416CanvasSource initialization from HTMLElement #6424is-supported-script expression 6260raster-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 an id of a preexisting layer #6147icon-image would not be rendered if text-field is an empty string #6164rotatestart and rotateend events #6187DragHandler bugs 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 on mouseup #6193Map#querySourceFeatures to throw an Uncaught TypeError(https://github.com/mapbox/mapbox-gl-js/pull/6555){DragPanHandler, DragRotateHandler}#disable while a gesture is in progress #6232GeolocateControl user location dot sizing when Map's <div> inherits box-sizing: border-box; (h/t @andrewharvey) #6227array expression error messages (h/t @drewbo) #6269line-width larger than the sprite height of the line-pattern property would render other sprite images #6246DragPanHandler on mobile using Edge (note that zoom/rotate/pitch handlers still do not support Edge touch events #1928) #6325VectorTileWorkerSource#reloadTile causing a rendering timeout #6308gl.stencilFunc calls due to incorrect state checking (h/t @yangdonglai) #6330mousedown or touchstart would cancel camera animations in non-interactive maps #6338text-translate #6365to-rgba expression causing division by zero 6388*-pattern properties with non-integer zoom stops #6430Map#remove on a map with constructor option hash: true throws an error (h/t @allthesignals) #6490Map#moveLayer(layerId, beforeId) to remove the layer when layerId === beforeId #6542