diff --git a/CHANGELOG.md b/CHANGELOG.md index 91ced6289c1..4244f09e1b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +## 1.2.0 + +## Features and improvements +* Add `*-sort-key` layout property for circle, fill, and line layers, to dictate which features appear above others within a single layer([#8467](https://github.com/mapbox/mapbox-gl-js/pull/8467)) +* Add ability to instantiate maps with specific access tokens ([#8364](https://github.com/mapbox/mapbox-gl-js/pull/8364)) +* Accommodate `prefers-reduced-motion` settings in browser ([#8494](https://github.com/mapbox/mapbox-gl-js/pull/8494)) +* Add Map `visualizePitch` option that tilts the compass as the map pitches ([#8208](https://github.com/mapbox/mapbox-gl-js/issues/8208), fixed by [#8296](https://github.com/mapbox/mapbox-gl-js/pull/8296)) (h/t [pakastin](https://github.com/pakastin)) +* Make source options take precedence over TileJSON ([#8232](https://github.com/mapbox/mapbox-gl-js/pull/8232)) (h/t [jingsam](https://github.com/jingsam)) +* Make requirements for text offset properties more precise ([#8418](https://github.com/mapbox/mapbox-gl-js/pull/8418)) +* Expose `convertFilter` API in the style specification ([#8493](https://github.com/mapbox/mapbox-gl-js/pull/8493) + +## Bug fixes +* Fix changes to `text-variable-anchor`, such that previous anchor positions would take precedence only if they are present in the updated array (considered a bug fix, but is technically a breaking change from previous behavior) ([#8473](https://github.com/mapbox/mapbox-gl-js/pull/8473)) +* Fix unbounded memory growth caused by failure to cancel requests to the cache (https://github.com/mapbox/mapbox-gl-js/pull/8472) +* Fix rendering of opaque pass layers over heatmap and fill-extrusion layers ([#8440](https://github.com/mapbox/mapbox-gl-js/pull/8440)) +* Fix regression in tile load times compared to 0.54.0 ([#8431](https://github.com/mapbox/mapbox-gl-js/issues/8431), fixed by [#8434](https://github.com/mapbox/mapbox-gl-js/pull/8434)) +* Fix rendering of extraneous vertical line in vector tiles ([#8477](https://github.com/mapbox/mapbox-gl-js/issues/8477), fixed by [#8479](https://github.com/mapbox/mapbox-gl-js/pull/8479)) +* Turn off 'move' event listeners when removing a marker ([#8465](https://github.com/mapbox/mapbox-gl-js/pull/8465)) +* Fix class toggling on navigation control for IE ([#8495](https://github.com/mapbox/mapbox-gl-js/pull/8495)) (h/t [cs09g](https://github.com/cs09g)) +* Fix background rotation hovering on geolocate control ([#8367](https://github.com/mapbox/mapbox-gl-js/pull/8367)) (h/t [GuillaumeGomez](https://github.com/GuillaumeGomez)) +* Fix error in click events on markers where `startPos` is not defined ([#8462](https://github.com/mapbox/mapbox-gl-js/pull/8462)) (h/t [@msbarry](https://github.com/msbarry)) +* Fix malformed urls when using custom `baseAPIURL` of a certain form ([#8466](https://github.com/mapbox/mapbox-gl-js/pull/8466)) + ## 1.1.1 ## 🐞 Bug fixes diff --git a/batfish.config.js b/batfish.config.js index 3567c568d38..40fa62c24b3 100644 --- a/batfish.config.js +++ b/batfish.config.js @@ -71,7 +71,11 @@ module.exports = () => { } }, devBrowserslist: false, - babelInclude: ['documentation'] + babelInclude: [ + 'documentation', + 'debounce-fn', + 'mimic-fn' + ] }; // Local builds treat the `dist` directory as static assets, allowing you to test examples against the diff --git a/docs/components/api-item-member.js b/docs/components/api-item-member.js index 173c8e3006e..c8422c7ae0e 100644 --- a/docs/components/api-item-member.js +++ b/docs/components/api-item-member.js @@ -51,7 +51,7 @@ class ApiItemMember extends React.Component { {this.state.disclosed &&
- +
} ); diff --git a/docs/components/api-item.js b/docs/components/api-item.js index c8c500bc92f..c1be8e1bacb 100644 --- a/docs/components/api-item.js +++ b/docs/components/api-item.js @@ -6,6 +6,8 @@ import {highlightJavascript} from '../components/prism_highlight.js'; import docs from '../components/api.json'; // eslint-disable-line import/no-unresolved import ApiItemMember from './api-item-member'; import IconText from '@mapbox/mr-ui/icon-text'; +import Feedback from '@mapbox/dr-ui/feedback'; +import constants from '../constants'; const linkerStack = new LinkerStack({}) .namespaceResolver(docs, (namespace) => { @@ -17,6 +19,21 @@ const formatters = createFormatters(linkerStack.link); class ApiItem extends React.Component { + constructor(props) { + super(props); + this.state = { + userName: undefined + }; + } + + componentDidMount() { + MapboxPageShell.afterUserCheck(() => { + this.setState({ userName: MapboxPageShell.getUser() ? + MapboxPageShell.getUser().id : + undefined}); + }); + } + md = (ast, inline) => { if (inline && ast && ast.children.length && ast.children[0].type === 'paragraph') { ast = { @@ -37,7 +54,7 @@ class ApiItem extends React.Component {
{title}
- {members.map((member, i) => )} + {members.map((member, i) => )}
; @@ -160,6 +177,17 @@ class ApiItem extends React.Component {
Related
} + +
+ +
); } diff --git a/docs/components/example.js b/docs/components/example.js index bcd8a217376..fad1b9814ef 100644 --- a/docs/components/example.js +++ b/docs/components/example.js @@ -6,6 +6,8 @@ import Prism from 'prismjs'; import supported from '@mapbox/mapbox-gl-supported'; import Icon from '@mapbox/mr-ui/icon'; import CodeSnippet from '@mapbox/mr-ui/code-snippet'; +import Feedback from '@mapbox/dr-ui/feedback'; +import constants from '../constants'; const highlightTheme = require('raw-loader!@mapbox/dr-ui/css/prism.css'); // eslint-disable-line import/no-commonjs @@ -15,7 +17,8 @@ export default function (html) { super(props); this.state = { filter: '', - token: undefined + token: undefined, + userName: undefined }; } @@ -101,6 +104,15 @@ ${html} +
+ +
); } @@ -113,7 +125,9 @@ ${html} doc.close(); MapboxPageShell.afterUserCheck(() => { - this.setState({token: MapboxPageShell.getUserPublicAccessToken()}); + this.setState({token: MapboxPageShell.getUserPublicAccessToken(), userName: MapboxPageShell.getUser() ? + MapboxPageShell.getUser().id : + undefined}); }); } diff --git a/docs/components/markdown-page-shell.js b/docs/components/markdown-page-shell.js index 0b8947cf456..11c97a370de 100644 --- a/docs/components/markdown-page-shell.js +++ b/docs/components/markdown-page-shell.js @@ -1,7 +1,26 @@ import React from 'react'; import PageShell from './page_shell'; +import Feedback from '@mapbox/dr-ui/feedback'; +import constants from '../constants'; class MarkdownPageshell extends React.Component { + constructor(props) { + super(props); + this.state = { + userName: undefined + }; + } + + componentDidMount() { + MapboxPageShell.afterUserCheck(() => { + // fetches username so we can identify them in segment + this.setState({ + userName: MapboxPageShell.getUser() ? + MapboxPageShell.getUser().id : + undefined + }); + }); + } render() { const { frontMatter, location } = this.props; const meta = this.props.meta || {}; @@ -22,6 +41,14 @@ class MarkdownPageshell extends React.Component {
{this.props.children}
+
+ +
); } diff --git a/docs/constants.json b/docs/constants.json new file mode 100644 index 00000000000..9f9a232eb8b --- /dev/null +++ b/docs/constants.json @@ -0,0 +1,6 @@ +{ + "FORWARD_EVENT_WEBHOOK": { + "staging": "https://evj5gwoa8j.execute-api.us-east-1.amazonaws.com/hookshot/webhook", + "production": "https://2n40g6lyc9.execute-api.us-east-1.amazonaws.com/hookshot/webhook" + } +} diff --git a/docs/pages/api.js b/docs/pages/api.js index bca7d6fa9da..bfad153e632 100644 --- a/docs/pages/api.js +++ b/docs/pages/api.js @@ -66,7 +66,7 @@ export default class extends React.Component {
{docs.map((doc, i) => doc.kind === 'note' ? : - )} + )}
diff --git a/docs/pages/example/mapbox-gl-directions.html b/docs/pages/example/mapbox-gl-directions.html index c2c68315285..4c59d9ed9c8 100644 --- a/docs/pages/example/mapbox-gl-directions.html +++ b/docs/pages/example/mapbox-gl-directions.html @@ -1,5 +1,5 @@ - - + +