Breaking changes
- `map.setView(latlng, zoom, bearing)` has been removed. Use
[`map.jumpTo(options)`](https://www.mapbox.com/mapbox-gl-js/api/#map/jumpto) instead:
js
map.setView([40, -74.5], 9); // 0.7.0 or earlier
map.jumpTo({ center: [40, -74.5], zoom: 9 }); // now
- [`map.easeTo`](https://www.mapbox.com/mapbox-gl-js/api/#map/easeto) and
[`map.flyTo`](https://www.mapbox.com/mapbox-gl-js/api/#map/flyto) now accept a single
options object rather than positional parameters:
js
map.easeTo([40, -74.5], 9, null, { duration: 400 }); // 0.7.0 or earlier
map.easeTo({ center: [40, -74.5], zoom: 9, duration: 400 }); // now
- `mapboxgl.Source` is no longer exported. Use `map.addSource()` instead. See the
[GeoJSON line](https://www.mapbox.com/mapbox-gl-js/example/geojson-line/) or
[GeoJSON markers](https://www.mapbox.com/mapbox-gl-js/example/geojson-markers/)
examples.
- `mapboxgl.util.supported()` moved to [`mapboxgl.supported()`](https://www.mapbox.com/mapbox-gl-js/api/#mapboxgl/supported).
UX improvements
- Add perspective rendering ([1049](https://github.com/mapbox/mapbox-gl-js/pull/1049))
- Better and faster labelling ([1079](https://github.com/mapbox/mapbox-gl-js/pull/1079))
- Add touch interactions support on mobile devices ([949](https://github.com/mapbox/mapbox-gl-js/pull/949))
- Viewport-relative popup arrows ([1065](https://github.com/mapbox/mapbox-gl-js/pull/1065))
- Normalize mousewheel zooming speed ([1060](https://github.com/mapbox/mapbox-gl-js/pull/1060))
- Add proper handling of GeoJSON features that cross the date line ([1275](https://github.com/mapbox/mapbox-gl-js/issues/1275))
- Sort overlapping symbols in the y direction ([470](https://github.com/mapbox/mapbox-gl-js/issues/470))
- Control buttons are now on a 30 pixel grid ([1143](https://github.com/mapbox/mapbox-gl-js/issues/1143))
- Improve GeoJSON processing performance
API Improvements
- Switch to JSDoc for documentation
- Bundling with browserify is now supported
- Validate incoming map styles ([1054](https://github.com/mapbox/mapbox-gl-js/pull/1054))
- Add `Map` `setPitch` `getPitch`
- Add `Map` `dblclick` event. ([1168](https://github.com/mapbox/mapbox-gl-js/issues/1168))
- Add `Map` `getSource` ([660a8c1](https://github.com/mapbox/mapbox-gl-js/commit/660a8c1e087f63282d24a30684d686523bce36cb))
- Add `Map` `setFilter` and `getFilter` ([985](https://github.com/mapbox/mapbox-gl-js/issues/985))
- Add `Map` `failIfMajorPerformanceCaveat` option ([1082](https://github.com/mapbox/mapbox-gl-js/pull/1082))
- Add `Map` `preserveDrawingBuffer` option ([1232](https://github.com/mapbox/mapbox-gl-js/pull/1232))
- Add `VideoSource` `getVideo()` ([1162](https://github.com/mapbox/mapbox-gl-js/issues/1162))
- Support vector tiles with extents other than 4096 ([1227](https://github.com/mapbox/mapbox-gl-js/pull/1227))
- Use a DOM hierarchy that supports evented overlays ([1217](https://github.com/mapbox/mapbox-gl-js/issues/1217))
- Pass `latLng` to the event object ([1068](https://github.com/mapbox/mapbox-gl-js/pull/1068))
UX Bugfixes
- Fix rendering glitch on iOS 8 ([750](https://github.com/mapbox/mapbox-gl-js/issues/750))
- Fix line triangulation errors ([1120](https://github.com/mapbox/mapbox-gl-js/issues/1120), [#992](https://github.com/mapbox/mapbox-gl-js/issues/992))
- Support unicode range 65280-65535 ([1108](https://github.com/mapbox/mapbox-gl-js/pull/1108))
- Fix cracks between fill patterns ([972](https://github.com/mapbox/mapbox-gl-js/issues/972))
- Fix angle of icons aligned with lines ([37a498a](https://github.com/mapbox/mapbox-gl-js/commit/37a498a7aa2c37d6b94611b614b4efe134e6dd59))
- Fix dashed line bug for overscaled tiles ([1132](https://github.com/mapbox/mapbox-gl-js/issues/1132))
- Fix icon artifacts caused by sprite neighbors ([1195](https://github.com/mapbox/mapbox-gl-js/pull/1195))
API Bugfixes
- Don't fire spurious `moveend` events on mouseup ([1107](https://github.com/mapbox/mapbox-gl-js/issues/1107))
- Fix a race condition in `featuresAt` ([1220](https://github.com/mapbox/mapbox-gl-js/pull/1220))
- Fix for brittle fontstack name convention ([1070](https://github.com/mapbox/mapbox-gl-js/pull/1070))
- Fix broken `Popup` `setHTML` ([1272](https://github.com/mapbox/mapbox-gl-js/issues/1272))
- Fix an issue with cross-origin image requests ([1269](https://github.com/mapbox/mapbox-gl-js/pull/1269))