Skip to content

Releases: mapbox/mapbox-gl-js

v0.38.0

09 Jun 20:23
Compare
Choose a tag to compare

0.38.0 (June 9, 2017)

New features ✨

  • Attenuate label size scaling with distance, improving readability of pitched maps #4547

Bug fixes 🪲

  • Skip rendering for patterned layers when pattern is missing #4687
  • Fix bug with map failing to rerender after webglcontextlost event #4725 @cdawi
  • Clamp zoom level in flyTo to within the map's specified min- and maxzoom to prevent undefined behavior #4726 @ IvanSanchez
  • Fix wordmark rendering in IE #4741
  • Fix slight pixelwise symbol rendering bugs caused by incorrect sprite calculations #4737
  • Prevent exceptions thrown by certain flyTo calls #4761
  • Fix "Improve this map" link #4685
  • Tweak queryRenderedSymbols logic to better account for pitch scaling #4792
  • Fix for symbol layers sometimes failing to render, most frequently in Safari #4795
  • Apply text-keep-upright after text-offset to keep labels upright when intended #4779 [Potentially breaking ⚠️ but considered a bugfix]
  • Prevent exceptions thrown by empty GeoJSON tiles 4803

Accessibility improvements 🔉

Development workflow + testing improvements 🔧

  • Fix equality assertion bug in tests #4731 @IvanSanchez
  • Benchmark results page improvements #4746
  • Require node version >=6.4.0, enabling the use of more ES6 features #4752
  • Document missing pitchWithRotate option #4800 @simast
  • Move Github-specific Markdown files into subdirectory #4806 @tomscholz

v0.37.0

02 May 21:49
Compare
Choose a tag to compare

0.37.0 (May 2nd, 2017)

⚠️ Breaking changes

  • Removed LngLat#wrapToBestWorld

New features 🚀

  • Improve popup/marker positioning #4577
  • Add Map#isStyleLoaded and Map#areTilesLoaded events #4321
  • Support offline sprites using file: protocol #4649 @oscarfonts

Bug fixes 🐛

  • Fix fullscreen control in Firefox #4666
  • Fix rendering artifacts that caused tile boundaries to be visible in some cases #4636
  • Fix default calculation for categorical zoom-and-property functions #4657
  • Fix scaling of images on retina screens #4645
  • Rendering error when a transparent image is added via Map#addImage #4644
  • Fix an issue with rendering lines with duplicate points #4634
  • Fix error when switching from data-driven styles to a constant paint value #4611
  • Add check to make sure invalid bounds on tilejson don't error out #4641

Development workflow improvements 💻

  • Add flowtype interfaces and definitions @vicapow
  • Add stylelinting to ensure mapboxgl- prefix on all classes #4584 @asantos3026

v0.36.0

19 Apr 22:37
Compare
Choose a tag to compare

0.36.0 (April 19, 2017)

New features ✨

  • Replace LogoControl logo with the new Mapbox logo #4598

Bug fixes 🐛

  • Fix bug with the BoxZoomHandler that made it glitchy if it is enabled after the DragPanHandler #4528
  • Fix undefined behavior in fill_outline shaders #4600
  • Fix Camera#easeTo interpolation on pitched maps #4540
  • Fix easeTo to cross anti-meridian if the path will be closer, like flyTo #4602
  • Fix flyTo/easeTo not to cross anti-meridian if maxBounds is set #4602
  • Fix issues with categorical zoom-and-property functions #4614

Development workflow improvements 🤓

  • Fix crash on missing style.json in integration tests
  • gl-style-composite is now executable in line with the other tools @andrewharvey #4595
  • gl-style-composite utility now throws an error if a name conflict would occur between layers @andrewharvey #4595

v0.35.1

12 Apr 20:39
Compare
Choose a tag to compare

Bug fixes 🐛

  • Add .json extension to style-spec require statements for webpack compatibility #4563 @orangemug
  • Fix documentation type for Map#fitBounds #4569 @andrewharvey
  • Fix bug causing {Image,Video,Canvas}Source to throw exception if latitude is outside of +/-85.05113 #4574
  • Fix bug causing overzoomed raster tiles to disappear from map #4567
  • Fix bug causing queryRenderedFeatures to crash on polygon features that have a non-integer id field. #4581

v0.35.0

07 Apr 22:10
Compare
Choose a tag to compare

New features 🚀

  • Use anisotropic filtering to improve rendering of raster tiles on pitched maps #1064
  • Add pitchstart and pitchend events #2449
  • Add an optional layers parameter to Map#on #1002
  • Add data-driven styling support for text-offset #4495
  • Add data-driven styling support for text-rotate #3516
  • Add data-driven styling support for icon-image #4304
  • Add data-driven styling support for {text,icon}-size #4455

Bug fixes 🐛

  • Suppress error messages in JS console due to missing tiles #1800
  • Fix bug wherein GeoJSONSource#setData() could cause unnecessary DOM updates #4447
  • Fix bug wherein Map#flyTo did not respect the renderWorldCopies setting #4449
  • Fix regression in browserify support # 4453
  • Fix bug causing poor touch event behavior on mobile devices #4259
  • Fix bug wherein duplicate stops in property functions could cause an infinite loop #4498
  • Respect image height/width in addImage api #4531
  • Fix bug preventing correct behavior of shift+zoom #3334
  • Fix bug preventing image source from rendering when coordinate area is too large #4550
  • Show image source on horizontally wrapped worlds #4555
  • Fix bug in the handling of refreshedExpiredTiles option #4549
  • Support the TileJSON bounds property #1775

Development workflow improvements 💻

  • Upgrade flow to 0.42.0 (#4500)

v0.34.0

17 Mar 21:13
Compare
Choose a tag to compare

New features 🚀

  • Add Map#addImage and Map#removeImage API to allow adding icon images at runtime #4404
  • Simplify non-browserify bundler usage by making the distribution build the main entrypoint #4423

Bug fixes 🐛

  • Fix issue where coincident start/end points of LineStrings were incorrectly rendered as joined #4413
  • Fix bug causing queryRenderedFeatures to fail in cases where both multiple sources and data-driven paint properties were present #4417
  • Fix bug where tile request errors caused map.loaded() to incorrectly return false #4425

Testing improvements ✅

v0.33.1

11 Mar 01:32
Compare
Choose a tag to compare

Bug fixes 🐛

  • Prevent Mapbox logo from being added to the map more than once #4386
  • Add type='button' to FullscreenControl to prevent button from acting as a form submit #4397
  • Fix issue where map would continue to rotate if Ctrl key is released before the click during a DragRotate event #4389
  • Remove double options.easing description from the Map#fitBounds documentation #4402

v0.33.0

08 Mar 20:52
Compare
Choose a tag to compare

⚠️ Breaking changes

  • Automatically add Mapbox wordmark when required by Mapbox TOS #3933
  • Increase default maxZoom from 20 to 22 #4333
  • Deprecate tiledata and tiledataloading events in favor of sourcedata and sourcedataloading. #4347
  • mapboxgl.util is no longer exported. #4241

✅ New features

  • Add property functions support for most symbol paint properties #4074, #4186, #4226
  • Add ability to specify default property value for undefined or invalid property values used in property functions. #4175
  • Improve Map#fitBounds to accept different values for top, bottom, left, and right padding #3890
  • Add a FullscreenControl for displaying a fullscreen map #3977

🐞 Bug fixes

  • Fix validation error on categorical zoom-and-property functions #4220
  • Fix bug causing expired resources to be re-requested causing an infinite loop #4255
  • Fix problem where MapDataEvent#isSourceLoaded always returned false #4254
  • Fix an issue where tiles in the source cache were prematurely deleted, resulting in tiles flickering when zooming in and out #4311
  • Make sure MapEventData is passed through on calls Map#flyTo #4342
  • Fix incorrect returned values for Map#isMoving #4350
  • Fix categorical functions not allowing boolean stop domain values #4195
  • Fix piecewise-constant functions to allow non-integer zoom levels. #4196
  • Fix issues with $id in filters #4236 #4237
  • Fix a race condition with polygon centroid algorithm causing tiles not to load in some cases. #4273
  • Throw a meaningful error when giving non-array layers parameter to queryRenderedFeatures #4331
  • Throw a meaningful error when supplying invalid minZoom and maxZoom values #4324
  • Fix a memory leak when using the RTL Text plugin #4248

🔧 Dev workflow changes

v0.32.1

26 Jan 21:01
Compare
Choose a tag to compare

Bug Fixes

v0.32.0

26 Jan 19:35
Compare
Choose a tag to compare

Deprecation Notices

  • Style classes are deprecated and will be removed in an upcoming release of Mapbox GL JS.

New Features

  • Add Map#isSourceLoaded method #4033
  • Automatically reload tiles based on their Expires and Cache-Control HTTP headers #3944
  • Add around=center option to scrollZoom and touchZoomRotate interaction handlers #3876
  • Add support for mapbox-gl-rtl-text plugin to support right-to-left scripts #3758
  • Add canvas source type #3765
  • Add Map#isMoving method #2792

Bug Fixes

  • Fix bug causing garbled text on zoom #3962
  • Fix bug causing crash in Firefox and Mobile Safari when rendering a large map #4037
  • Fix bug causing raster tiles to flicker during zoom #2467
  • Fix bug causing exception when unsetting and resetting fill-outline-color #3657
  • Fix memory leak when removing raster sources #3951
  • Fix bug causing exception when when zooming in / out on empty GeoJSON tile #3985
  • Fix line join artifacts at very sharp angles #4008