@ryanhamley ryanhamley released this Sep 12, 2018 · 32 commits to master since this release

Assets 2

0.49.0

September 6, 2018

⚠️ Breaking changes

  • Use client{Height/Width} instead of offset{Height/Width} for map canvas sizing (#6848, fixed by #7128)

🐛 Bug fixes

  • Fix Top Issues list for mapbox-gl-js (#7108, fixed by #7112)
  • Fix bug in which symbols with icon-allow-overlap: true, text-allow-overlap: true, text-optional: false would show icons when they shouldn't (#7041)
  • Fix bug where the map would not stop at the exact zoom level requested by Map#FlyTo (#7222) (#7223) (h/t benoitbzl)
  • Keep map centered on the center point of a multi-touch gesture when zooming (#6722) (#7191) (h/t pakastin)
  • Update the style-spec's old gl-style-migrate script to include conversion of legacy functions and filters to their expression equivalents (#6927, fixed by #7095)
  • Fix icon-size for small data-driven values (#7125)
  • Fix bug in the way AJAX requests load local files on iOS web view (#6610) (h/t oscarfonts)
  • Fix bug in which canvas sources would not render in world wrapped tiles at the edge of the viewport ([#7271]#7271), fixed by #7273)

Features and improvements

Performance updates:

  • Improve time to first render by updating how feature ID maps are transferred to the main thread (#7110, fixed by #7132)
  • Reduce size of JSON transmitted from worker thread to main thread (#7124)
  • Improve image/glyph atlas packing algorithm (#7171)
  • Use murmur hash on symbol instance keys to reduce worker transfer costs (#7127)
  • Add GL state management for uniforms (#6018)
  • Add symbol-z-order symbol layout property to style spec (#7219)
  • Implement data-driven styling support for *-pattern properties (#6289)
  • Add Map#fitScreenCoordinates which fits viewport to two points, similar to Map#fitBounds but uses screen coordinates and supports non-zero map bearings (#6894)
  • Re-implement LAB/HSL color space interpolation for expressions (#5326, fixed by #7123)
  • Enable benchmark testing for Mapbox styles (#7047)
  • Allow Map#setFeatureState and Map#getFeatureState to accept numeric IDs (#7106) (h/t bfrengley)
Sep 12, 2018
Pre-release
Pre-release

@ryanhamley ryanhamley released this Sep 6, 2018 · 32 commits to master since this release

Assets 2
v0.49.0-beta.1 (#7248)

@mollymerp mollymerp released this Aug 17, 2018 · 109 commits to master since this release

Assets 2

⚠️ Breaking changes

  • Treat tiles that error with status 404 as empty renderable tiles to prevent rendering duplicate features in some sparse tilesets (#6803)

🐛 Bug fixes

  • Fix issue where text-max-angle property was being calculated incorectly internally, causing potential rendering errors when "text-placement": line
  • Require feature.id when using Map#setFeatureState (#6974)
  • Fix issue with removing the GeolocateControl when user location is being used (#6977) (h/t sergei-zelinsky)
  • Fix memory leak caused by a failure to remove all controls added to the map (#7042)
  • Fix bug where the build would fail when using mapbox-gl webpack 2 and UglifyJSPlugin (#4359, fixed by #6956)
  • Fix bug where fitBounds called with coordinates outside the bounds of Web Mercator resulted in uncaught error (#6906, fixed by #6918)
  • Fix bug wherein Map#querySourceFeatures was returning bad results on zooms > maxZoom (#7061)
  • Relax typing for equality and order expressions (#6459, fixed by #6961)
  • Fix bug where 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

  • Performance Improvements:
    • Stop unnecessary serialization of symbol source features. (#7013)
    • Optimize calculation for getting visible tile coordinates (#6998)
    • Improve performance of creating {Glyph/Image}Atlases (#7091)
    • Optimize and simplify tile retention logic (#6995)
  • Add a user turnstile event for users accessing Mapbox APIs (#6980)
  • Add support for autogenerating feature ids for GeoJSON sources so they can be used more easily with the Map#setFeatureState API (#7043)) (#7091)
  • Add ability to style a symbol layer labels with multple fonts and text sizes via "format" expression (#6994)
  • Add customAttribution option to AttributionControl (#7033) (h/t mklopets)
  • Publish Flow type definitions alongside compiled bundle (#7079)
  • Introduce symbol cross fading when crossing integer zoom levels to prevent labels from disappearing before newly loaded tiles' labels can be rendered (#6951)
  • Improvements in label collision detection (#6925))
Aug 16, 2018
Aug 9, 2018
v0.48.0-beta.1 (#7102)

@jfirebaugh jfirebaugh released this Jul 18, 2018 · 206 commits to master since this release

Assets 2

Features and improvements

  • Add configurable drag pan threshold (#6809) (h/t msbarry)
  • Add raster-resampling raster paint property (#6411) (h/t andrewharvey)
  • Add symbol-placement: line-center (#6821)
  • Add methods for inspecting GeoJSON clusters (#3318, fixed by #6829)
  • Add warning to geolocate control when unsupported (#6923) (h/t aendrew)
  • Upgrade geojson-vt to 3.1.4 (#6942)
  • Include link to license in compiled bundle (#6975)

🐛 Bug fixes

  • Use updateData instead of re-creating buffers for repopulated paint arrays (#6853)
  • Fix ScrollZoom handler setting tr.zoom = NaN (#6924)
    • Failed to invert matrix error (#6486, fixed by #6924)
    • Fixing matrix errors (#6782, fixed by #6924)
  • Fix heatmap tile clipping when layers are ordered above it (#6806, fixed by #6807)
  • Fix video source in safari (macOS and iOS) (#6443, fixed by #6811)
  • Do not reload errored tiles (#6813)
  • Fix send / remove timing bug in Dispatcher (#6756, fixed by #6826)
  • Fix flyTo not zooming to exact given zoom (#6828)
  • Don't stop animation on map resize (#6636)
  • Fix map.getBounds() with rotated map (#6875) (h/t zoltan-mihalyi)
  • Support collators in feature filter expressions. (#6929)
  • Fix Webpack production mode compatibility (#6981)
Jul 18, 2018
Jun 21, 2018
Bump style-spec version to 13.0.1 to allow re-publishing to NPM.