mapbox-gl
Advanced tools
Changelog
0.20.0 (June 10 2016)
workerCount
constructor option #2666locationPoint
and pointLocation
#2690version
property to mapboxgl #2660circle-opacity
and circle-blur
#2693queryRenderedFeatures
#2694Changelog
0.19.1 (June 2 2016)
Changelog
0.19.0 (May 31 2016)
fill-color
and fill-outline-color
#2629has
and !has
filter operators mapbox/feature-filter#15trackResize
option to Map
#2591fill-pattern
from a fill layer #2534line-pattern
and fill-pattern
rendering #2596queryRenderedFeatures
before the map is loaded #2621Changelog
0.18.0 (April 13 2016)
circle-color
and circle-size
#2454Map#setFilter
#2495Changelog
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 tiles