mapbox-gl
Advanced tools
Changelog
0.17.0 (April 13 2016)
map.batch
in favor of automatically batching style mutations (i.e. calls to Map#setLayoutProperty
, Map#setPaintProperty
, Map#setFilter
, Map#setClasses
, etc.) and applying them once per frame, significantly improving performance when updating the style frequently #2355 #2380util.throttle
#2345Map#queryRenderedFeatures
and Map#querySourceFeatures
#2349circle-color
and circle-size
#1932Popup#setDOMContent
method #2436WebWorker
instead of # cpus - 1
WebWorker
s, slowing down tile loading times #2408Map#queryRenderedFeatures
would sometimes return features that had been removed #2353clusterMaxZoom
option on GeoJSONSource
not working as expected #2374Map#queryRenderedFeatures
or Map#querySourceFeatures
with no argumentsMap#setLayoutProperty
for text-field
or icon-image
#2407Changelog
0.16.0 (March 24 2016)
Map#featuresAt
and Map#featuresIn
with Map#queryRenderedFeatures
and map.querySourceFeatures
(#2224)
featuresAt
and featuresIn
with queryRenderedFeatures
queryRenderedFeatures
synchronous, remove the callback and use the return value.layer
parameter to layers
and make it an array of layer names.radius
parameter. radius
was used with featuresAt
to account for style properties like line-width
and circle-radius
. queryRenderedFeatures
accounts for these style properties. If you need to query a larger area, use a bounding box query instead of a point query.includeGeometry
parameter because queryRenderedFeatures
always includes geometries.Map#debug
is renamed to Map#showTileBoundaries
(#2284)Map#collisionDebug
is renamed to Map#showCollisionBoxes
(#2284)GeoJSONSource#setData
. (#2222)Map#setMaxBounds
method (#2234)isActive
and isEnabled
methods to interaction handlers (#2238)Map#setZoomBounds
method (#2243)map.queryRenderedFeatures
to query the styled and rendered representations of features (#2224)map.querySourceFeatures
to get features directly from vector tiles, independent of the style (#2224)mapboxgl.Geolocate
control (#1939)setFilter
, setLayoutProperty
, and setLayerZoomRange
on ref children (#2228)undefined
bucket errors after setFilter
calls (#2244)queryRenderedFeatures
precision at high zoom levels (#2292)queryRenderedFeatures
(#2306)Changelog
0.15.0 (March 1 2016)
ImageSource#setCoordinates
and VideoSource#setCoordinates
(#2184)Changelog
0.14.3 (Feb 25 2016)
setData
(#2174)in
feature filter drops features (#2166)Map#load
from firing when tile "Not Found" errors occured (#2176)Changelog
0.14.2 (Feb 19 2016)
tileSize: 512
as a switch to trade retina support for 512px raster tilesChangelog
0.14.1 (Feb 10 2016)
Changelog
0.14.0 (Feb 8 2016)
GeoJSONSource
clustering options from being measured in extent-units to pixels (#2026)filter
performance and maximum size (#2024)Map#getStyle
method (#1982)mapboxgl.supported()
(#2018)minzoom
setting for GeoJSON sources (#1651)performance.now
not being present on some browsers (#2056)Changelog
0.13.1 (Jan 27 2016)
Changelog
0.12.4 (Jan 19 2016)
Changelog
0.12.3 (Jan 14 2016)