mapbox-gl
Advanced tools
Changelog
0.8.0 (Jun 15 2015)
map.setView(latlng, zoom, bearing)
has been removed. Use
map.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
and
map.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. Use map.addSource()
instead. See the
GeoJSON line or
GeoJSON markers
examples.
mapboxgl.util.supported()
moved to mapboxgl.supported()
.
Map
setPitch
getPitch
Map
dblclick
event. (#1168)Map
getSource
(660a8c1)Map
setFilter
and getFilter
(#985)Map
failIfMajorPerformanceCaveat
option (#1082)Map
preserveDrawingBuffer
option (#1232)VideoSource
getVideo()
(#1162)latLng
to the event object (#1068)moveend
events on mouseup (#1107)featuresAt
(#1220)Popup
setHTML
(#1272)Changelog
0.7.0 (Mar 3 2015)
Map
hover
event to mousemove
.featuresAt
to return GeoJSON objects, including geometry (#1010)Map
canvas
and container
properties, add getCanvas
and getContainer
methods insteadGeoJSONSource
setData
without flickering (#973)addSource
(#1021)featuresAt
for LineStrings (#1006)tileSize
argument to GeoJSON
worker (#987)Changelog
0.6.0 (Feb 9 2015)
map.setPaintProperty()
, map.getPaintProperty()
, map.setLayoutProperty()
, and map.getLayoutProperty()
./v4
path prefix.addClass
, removeClass
, setClasses
, hasClass
, and getClasses
are now methods
on Map.Style#cascade
is now private, pending a public style mutation API (#755).featuresAt
results changed. Instead of result-per-geometry-cross-layer,
each result has a layers
array with all layers that contain the feature. This avoids
duplication of geometry and properties in the result set.Changelog
0.5.2 (Jan 07 2015)
Changelog
0.5.1 (Dec 19 2014)
Changelog
0.5.0 (Dec 17 2014)
featuresAt
now returns additional informationfeaturesAt
changedChangelog
0.4.2 (Nov 14 2014)
Changelog
0.4.1 (Nov 10 2014)