Changelog History
Page 14
-
v0.11.4 Changes
November 16, 2015๐ Bugfixes
- ๐ Fix alpha blending of alpha layers (#1684)
-
v0.11.3 Changes
November 10, 2015 -
v0.11.2 Changes
October 29, 2015- ๐ Misc performance improvements
๐ Bugfixes
- ๐ Fix sprites on systems with non-integer
devicePixelRatio
s (#1029 #1475 #1476) - ๐ Fix layer minZoom being ignored if not less than source maxZoom
- ๐ Fix symbol placement at the start of a line (#1461)
- ๐ Fix
raster-opacity
on non-tile sources (#1270) - Ignore boxzoom on shift-click (#1655)
UX Improvements
- Enable line breaks on common punctuation (#1115)
API Improvements
-
v0.11.1 Changes
September 30, 2015๐ Bugfixes
- โ Add statistics and checkboxes to debug page
- ๐ Fix
Map#featuresAt
for non-4096 vector sources (#1529) - ๐ Don't fire
mousemove
on drag-pan - ๐ Fix maxBounds constrains (#1539)
- ๐ Fix maxBounds infinite loop (#1538)
- ๐ Fix memory leak in worker
- Assert valid
TileCoord
, fix wrap calculation inTileCoord#cover
(#1483) - Abort raster tile load if not in viewport (#1490)
API Improvements
- โ Add
Map
event listeners formouseup
,contextmenu
(right click) (#1532)
-
v0.11.0 Changes
September 11, 2015 -
v0.10.0 Changes
August 21, 2015๐ฅ Breaking changes
- Switched to [longitude, latitude] coordinate order, matching GeoJSON. We anticipate that mapbox-gl-js will be widely used with GeoJSON, and in the long term having a coordinate order that is consistent with GeoJSON will lead to less confusion and impedance mismatch than will a [latitude, longitude] order.
The following APIs were renamed:
* `LatLng` was renamed to `LngLat` * `LatLngBounds` was renamed to `LngLatBounds` * `Popup#setLatLng` was renamed to `Popup#setLngLat` * `Popup#getLatLng` was renamed to `Popup#getLngLat` * The `latLng` property of Map events was renamed `lngLat`
The following APIs now expect array coordinates in [longitude, latitude] order:
* `LngLat.convert` * `LngLatBounds.convert` * `Popup#setLngLat` * The `center` and `maxBounds` options of the `Map` constructor * The arguments to `Map#setCenter`, `Map#fitBounds`, `Map#panTo`, and `Map#project` * The `center` option of `Map#jumpTo`, `Map#easeTo`, and `Map#flyTo` * The `around` option of `Map#zoomTo`, `Map#rotateTo`, and `Map#easeTo` * The `coordinates` properties of video and image sources
๐ Updated to mapbox-gl-style-spec v8.0.0 (Changelog). Styles are now expected to be version 8. You can use the gl-style-migrate utility to update existing styles.
๐ The format for
mapbox://
style and glyphs URLs has changed. For style URLs, you should now use the formatmapbox://styles/:username/:style
. The:style
portion of the URL no longer contains a username. For font URLs, you should now use the formatmapbox://fonts/:username/{fontstack}/{range}.pbf
.๐ Mapbox default styles are now hosted via the Styles API rather than www.mapbox.com. You can make use of the Styles API with a
mapbox://
style URL pointing to a v8 style, e.g.mapbox://styles/mapbox/streets-v8
.๐ The v8 satellite style (
mapbox://styles/mapbox/satellite-v8
) is now a plain satellite style, and not longer supports labels or contour lines via classes. For a labeled satellite style, usemapbox://styles/mapbox/satellite-hybrid
.Removed
mbgl.config.HTTP_URL
andmbgl.config.FORCE_HTTPS
; https is always used when connecting to the Mapbox API.Renamed
mbgl.config.HTTPS_URL
tombgl.config.API_URL
.
๐ Bugfixes
- Don't draw halo when halo-width is 0 (#1381)
- ๐ Reverted shader changes that degraded performance on IE
API Improvements
- You can now unset layout and paint properties via the
setLayoutProperty
andsetPaintProperty
APIs by passingundefined
as a property value. - ๐ The
layer
option offeaturesAt
now supports an array of layers.
-
v0.9.0 Changes
July 29, 2015glyphs
URL now normalizes without the/v4/
prefix formapbox://
urls. Legacy behavior formapbox://fontstacks
is still maintained (#1385)- ๐ฆ Expose
geojson-vt
options for GeoJSON sources (#1271) - bearing snaps to "North" within a tolerance of 7 degrees (#1059)
- Now you can directly mutate the minzoom and maxzoom layer properties with
map.setLayerZoomRange(layerId, minzoom, maxzoom)
- ๐ฆ Exposed
mapboxgl.Control
, a base class used by all UI controls - ๐จ Refactored handlers to be individually included in Map options, or enable/disable them individually at runtime, e.g.
map.scrollZoom.disable()
. - ๐ New feature: Batch operations can now be done at once, improving performance for calling multiple style functions: (#1352)
style.batch(function(s) { s.addLayer({ id: 'first', type: 'symbol', source: 'streets' }); s.addLayer({ id: 'second', type: 'symbol', source: 'streets' }); s.addLayer({ id: 'third', type: 'symbol', source: 'terrain' }); s.setPaintProperty('first', 'text-color', 'black'); s.setPaintProperty('first', 'text-halo-color', 'white'); });
- ๐ Improved documentation
- ๐
featuresAt
performance improvements by exposingincludeGeometry
option - ๐ Better label placement along lines (#1283)
- ๐ Improvements to round linejoins on semi-transparent lines (mapbox/mapbox-gl-native#1771)
- Round zoom levels for raster tile loading (@2a2aec)
- Source#reload cannot be called if source is not loaded (#1198)
- Events bubble to the canvas container for custom overlays (#1301)
- ๐ Move handlers are now bound on mousedown and touchstart events
- map.featuresAt() now works across the dateline
-
v0.8.1 Changes
June 16, 2015- ๐ No code changes; released only to correct a build issue in 0.8.0.
-
v0.8.0 Changes
June 15, 2015๐ฅ Breaking changes
- ๐
map.setView(latlng, zoom, bearing)
has been removed. Usemap.jumpTo(options)
instead:
map.setView([40, -74.50], 9) // 0.7.0 or earlier map.jumpTo({center: [40, -74.50], zoom: 9}); // now
map.easeTo
andmap.flyTo
now accept a single options object rather than positional parameters:
map.easeTo([40, -74.50], 9, null, {duration: 400}); // 0.7.0 or earlier map.easeTo({center: [40, -74.50], zoom: 9, duration: 400}); // now
- ๐
mapboxgl.Source
is no longer exported. Usemap.addSource()
instead. See the GeoJSON line or GeoJSON markers examples. - ๐
mapboxgl.util.supported()
moved tomapboxgl.supported()
.
UX improvements
- โ Add perspective rendering (#1049)
- ๐ Better and faster labelling (#1079)
- โ Add touch interactions support on mobile devices (#949)
- Viewport-relative popup arrows (#1065)
- Normalize mousewheel zooming speed (#1060)
- โ Add proper handling of GeoJSON features that cross the date line (#1275)
- Sort overlapping symbols in the y direction (#470)
- Control buttons are now on a 30 pixel grid (#1143)
- ๐ Improve GeoJSON processing performance
API Improvements
- ๐ Switch to JSDoc for documentation
- ๐ป Bundling with browserify is now supported
- ๐ Validate incoming map styles (#1054)
- โ Add
Map
setPitch
getPitch
- โ Add
Map
dblclick
event. (#1168) - โ Add
Map
getSource
(@660a8c1) - โ Add
Map
setFilter
andgetFilter
(#985) - โ Add
Map
failIfMajorPerformanceCaveat
option (#1082) - โ Add
Map
preserveDrawingBuffer
option (#1232) - โ Add
VideoSource
getVideo()
(#1162) - ๐ Support vector tiles with extents other than 4096 (#1227)
- ๐ Use a DOM hierarchy that supports evented overlays (#1217)
- Pass
latLng
to the event object (#1068)
๐ UX Bugfixes
- ๐ Fix rendering glitch on iOS 8 (#750)
- ๐ Fix line triangulation errors (#1120, #992)
- ๐ Support unicode range 65280-65535 (#1108)
- ๐ Fix cracks between fill patterns (#972)
- ๐ Fix angle of icons aligned with lines (@37a498a)
- ๐ Fix dashed line bug for overscaled tiles (#1132)
- ๐ Fix icon artifacts caused by sprite neighbors (#1195)
๐ API Bugfixes
- ๐
-
v0.7.0 Changes
March 03, 2015๐ฅ Breaking
- ๐ Rename
Map
hover
event tomousemove
. - ๐ Change
featuresAt
to return GeoJSON objects, including geometry (#1010) - โ Remove
Map
canvas
andcontainer
properties, addgetCanvas
andgetContainer
methods instead
UX Improvements
- ๐ Improve line label density
- โ Add boxzoom interaction (#1038)
- โ Add keyboard interaction (#1034)
- Faster
GeoJSONSource
setData
without flickering (#973)
API Improvements
- โ Add Popup component (#325)
- โ Add layer API (#1022)
- โ Add filter API (#985)
- More efficient filter API (#1018)
- Accept plain old JS object for
addSource
(#1021) - ๐ Reparse overscaled tiles
๐ Bugfixes
- ๐ Rename