|
2 | 2 |
|
3 | 3 | #### Breaking Changes |
4 | 4 |
|
5 | | -* `map.featuresAt` and `map.featuresIn` are removed. Use `map.queryRenderedFeatures` or `map.querySourceFeatures` instead. To migrate: |
6 | | - * replace `featuresAt` and `featuresIn` with `queryRenderedFeatures` |
7 | | - * `queryRenderedFeatures` is synchronous. Remove the callback and use the return value. |
8 | | - * rename the `layer` parameters to `layers` and make it an array of strings. |
9 | | - * remove the `radius` parameter. `radius` was often used with `featuresAt` to account for style properties like `line-width` and `circle-radius`. `queryRenderedFeatures` automatically accounts for these style properties. If you need to query a larger area, make the first argument a box instead of a point. |
10 | | - * remove the `includeGeometry` parameter. `queryRenderedFeatures` always includes geometries. |
| 5 | +* Replace `Map#featuresAt` and `Map#featuresIn` with `Map#queryRenderedFeatures` and `map.querySourceFeatures` (#2224) |
| 6 | + * Replace `featuresAt` and `featuresIn` with `queryRenderedFeatures` |
| 7 | + * Make `queryRenderedFeatures` synchronous, remove the callback and use the return value. |
| 8 | + * Rename `layer` parameter to `layers` and make it an array of layer names. |
| 9 | + * Remove the `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. |
| 10 | + * Remove the `includeGeometry` parameter because `queryRenderedFeatures` always includes geometries. |
| 11 | +* `Map#debug` is renamed to `Map#showTileBoundaries` (#2284) |
| 12 | +* `Map#collisionDebug` is renamed to `Map#showCollisionBoxes` (#2284) |
11 | 13 |
|
12 | 14 | #### New Features & Improvements |
13 | 15 |
|
|
17 | 19 | * Add `isActive` and `isEnabled` methods to interaction handlers (#2238) |
18 | 20 | * Add `Map#setZoomBounds` method (#2243) |
19 | 21 | * Add touch events (#2195) |
20 | | -* `map.queryRenderedFeatures` can be used to query the styled and rendered representations of features |
21 | | -* `map.querySourceFeatures` can be used to get features directly from vector tiles, independent of the style. |
22 | | -* interaction for labels (#303) and style-property-aware hit testing (#316) are possible with `map.queryRenderedFeatures` |
| 22 | +* Add `map.queryRenderedFeatures` to query the styled and rendered representations of features (#2224) |
| 23 | +* Add `map.querySourceFeatures` to get features directly from vector tiles, independent of the style (#2224) |
| 24 | +* Add `mapboxgl.Geolocate` control (#1939) |
| 25 | +* Make background patterns render seamlessly across tile boundaries (#2305) |
23 | 26 |
|
24 | 27 | #### Bugfixes |
25 | 28 |
|
26 | 29 | * Fix calls to `setFilter`, `setLayoutProperty`, and `setLayerZoomRange` on ref children (#2228) |
27 | 30 | * Fix `undefined` bucket errors after `setFilter` calls (#2244) |
28 | 31 | * Fix bugs causing hidden symbols to be rendered (#2246, #2276) |
29 | 32 | * Fix raster flickering (#2236) |
| 33 | +* Fix `queryRenderedFeatures` precision at high zoom levels (#2292) |
| 34 | +* Fix holes in GeoJSON data caused by unexpected winding order (#2285) |
| 35 | +* Fix bug causing deleted features to be returned by `queryRenderedFeatures` (#2306) |
| 36 | +* Fix bug causing unexpected fill patterns to be rendered (#2307) |
| 37 | +* Fix popup location with preceding sibling elements (#2311) |
| 38 | +* Fix polygon anti-aliasing (#2319) |
| 39 | +* Fix slivers between non-adjacent polygons (#2319) |
| 40 | +* Fix keyboard shortcuts causing page to scroll (#2312) |
30 | 41 |
|
31 | 42 | ## 0.15.0 (March 1 2016) |
32 | 43 |
|
|
0 commit comments