Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/mb-pages'
Browse files Browse the repository at this point in the history
  • Loading branch information
Asheem Mamoowala committed Oct 30, 2018
2 parents 61ae8d2 + 4acd91b commit 782d705
Show file tree
Hide file tree
Showing 13 changed files with 89 additions and 37 deletions.
3 changes: 3 additions & 0 deletions .artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: v1
defaults:
- publisher
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
.*/test/integration/render-tests/.*
.*/test/build/downstream-flow-fixture/.*
.*/_batfish_site/.*
.*/_site/.*

[version]
0.77.0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ test/integration/**/diff.png
src/style-spec/dist/index.js
_batfish_site
_batfish_tmp
_site
yarn-error.log
yarn-debug.log
npm-debug.log
56 changes: 47 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,48 @@
## 0.50.0
October 10, 2018

### ✨ Features and improvements
* 🎉 Add Custom Layers that can be rendered into with user-provided WebGL code ([#7039](https://github.com/mapbox/mapbox-gl-js/pull/7039))
* Add WebGL face culling for increased performance ([#7178](https://github.com/mapbox/mapbox-gl-js/pull/7178))
* Improve speed of expression evaluation ([#7334](https://github.com/mapbox/mapbox-gl-js/pull/7334))
* Automatically coerce to string for `concat` expression and `text-field` property ([#6190](https://github.com/mapbox/mapbox-gl-js/issues/6190), fixed by [#7280](https://github.com/mapbox/mapbox-gl-js/pull/7280))
* Add `fill-extrusion-vertical-gradient` property for controlling shading of fill extrusions ([#5768](https://github.com/mapbox/mapbox-gl-js/issues/5768), fixed by [#6841](https://github.com/mapbox/mapbox-gl-js/pull/6841))
* Add update functionality for images provided via `ImageSource` ([#4050](https://github.com/mapbox/mapbox-gl-js/issues/4050), fixed by [#7342](https://github.com/mapbox/mapbox-gl-js/pull/7342)) (h/t [dcervelli](https://github.com/dcervelli))



### 🐛 Bug fixes
* **Expressions**
* Fix expressions that use `log2` and `log10` in IE11 ([#7318](https://github.com/mapbox/mapbox-gl-js/issues/7318), fixed by [#7320](https://github.com/mapbox/mapbox-gl-js/pull/7320))
* Fix `let` expression stripping expected type during parsing ([#7300](https://github.com/mapbox/mapbox-gl-js/issues/7300), fixed by [#7301](https://github.com/mapbox/mapbox-gl-js/pull/7301))
* Fix superfluous wrapping of literals in `literal` expression ([#7336](https://github.com/mapbox/mapbox-gl-js/issues/7336), fixed by [#7337](https://github.com/mapbox/mapbox-gl-js/pull/7337))
* Allow calling `to-color` on values that are already of type `Color` ([#7260](https://github.com/mapbox/mapbox-gl-js/pull/7260))
* Fix `to-array` for empty arrays (([#7261](https://github.com/mapbox/mapbox-gl-js/pull/7261)))
* Fix identity functions for `text-field` when using formatted text ([#7351](https://github.com/mapbox/mapbox-gl-js/pull/7351))
* Fix coercion of `null` to `0` in `to-number` expression ([#7083](https://github.com/mapbox/mapbox-gl-js/issues/7083), fixed by [#7274](https://github.com/mapbox/mapbox-gl-js/pull/7274))
* **Canvas source**
* Fix missing repeats of `CanvasSource` when it crosses the antimeridian ([#7273](https://github.com/mapbox/mapbox-gl-js/pull/7273))
* Fix `CanvasSource` not respecting alpha values set on `canvas` element ([#7302](https://github.com/mapbox/mapbox-gl-js/issues/7302), fixed by [#7309](https://github.com/mapbox/mapbox-gl-js/pull/7309))
* **Rendering**
* Fix rendering of fill extrusions with really high heights ([#7292](https://github.com/mapbox/mapbox-gl-js/pull/7292))
* Fix an error where the map state wouldn't return to `loaded` after certain runtime styling changes when there were errored tiles in the viewport ([#7355](https://github.com/mapbox/mapbox-gl-js/pull/7355))
* Fix errors when rendering symbol layers without symbols ([#7241](https://github.com/mapbox/mapbox-gl-js/issues/7241), fixed by [#7253](https://github.com/mapbox/mapbox-gl-js/pull/7253))
* Don't fade in symbols with `*-allow-overlap: true` when panning into the viewport ([#7172](https://github.com/mapbox/mapbox-gl-js/issues/7172), fixed by[#7244](https://github.com/mapbox/mapbox-gl-js/pull/7244))
* **Library**
* Fix disambiguation for `mouseover` event ([#7295](https://github.com/mapbox/mapbox-gl-js/issues/7295), fixed by [#7299](https://github.com/mapbox/mapbox-gl-js/pull/7299))
* Fix silent failure of `getImage` if an SVG is requested ([#7312](https://github.com/mapbox/mapbox-gl-js/issues/7312), fixed by [#7313](https://github.com/mapbox/mapbox-gl-js/pull/7313))
* Fix empty control group box shadow ([#7303](https://github.com/mapbox/mapbox-gl-js/issues/7303), fixed by [#7304](https://github.com/mapbox/mapbox-gl-js/pull/7304)) (h/t [Duder-onomy](https://github.com/Duder-onomy))
* Fixed an issue where a wrong timestamp was sent for Mapbox turnstile events ([#7381](https://github.com/mapbox/mapbox-gl-js/pull/7381))
* Fixed a bug that lead to attribution not showing up correctly in Internet Explorer ([#3945](https://github.com/mapbox/mapbox-gl-js/issues/3945), fixed by [#7391](https://github.com/mapbox/mapbox-gl-js/pull/7391))


## 0.49.0
September 6, 2018

## ⚠️ Breaking changes
### ⚠️ Breaking changes
* Use `client{Height/Width}` instead of `offset{Height/Width}` for map canvas sizing ([#6848](https://github.com/mapbox/mapbox-gl-js/issues/6848), fixed by [#7128](https://github.com/mapbox/mapbox-gl-js/pull/7128))

## 🐛 Bug fixes
### 🐛 Bug fixes
* Fix [Top Issues list](https://mapbox.github.io/top-issues/#!mapbox/mapbox-gl-js) for mapbox-gl-js ([#7108](https://github.com/mapbox/mapbox-gl-js/issues/7108), fixed by [#7112](https://github.com/mapbox/mapbox-gl-js/pull/7112))
* Fix bug in which symbols with `icon-allow-overlap: true, text-allow-overlap: true, text-optional: false` would show icons when they shouldn't ([#7041](https://github.com/mapbox/mapbox-gl-js/pull/7041))
* Fix bug where the map would not stop at the exact zoom level requested by Map#FlyTo (#7222) ([#7223](https://github.com/mapbox/mapbox-gl-js/pull/7223)) (h/t [benoitbzl](https://github.com/benoitbzl))
Expand All @@ -14,8 +52,8 @@ September 6, 2018
* Fix bug in the way AJAX requests load local files on iOS web view ([#6610](https://github.com/mapbox/mapbox-gl-js/pull/6610)) (h/t [oscarfonts](https://github.com/oscarfonts))
* Fix bug in which canvas sources would not render in world wrapped tiles at the edge of the viewport ([#7271]https://github.com/mapbox/mapbox-gl-js/issues/7271), fixed by [#7273](https://github.com/mapbox/mapbox-gl-js/pull/7273))

## ✨ Features and improvements
Performance updates:
### ✨ Features and improvements
* Performance updates:
* Improve time to first render by updating how feature ID maps are transferred to the main thread ([#7110](https://github.com/mapbox/mapbox-gl-js/issues/7110), fixed by [#7132](https://github.com/mapbox/mapbox-gl-js/pull/7132))
* Reduce size of JSON transmitted from worker thread to main thread ([#7124](https://github.com/mapbox/mapbox-gl-js/pull/7124))
* Improve image/glyph atlas packing algorithm ([#7171](https://github.com/mapbox/mapbox-gl-js/pull/7171))
Expand All @@ -31,10 +69,10 @@ Performance updates:
## 0.48.0
August 16, 2018

## ⚠️ Breaking changes
### ⚠️ Breaking changes
* Treat tiles that error with status 404 as empty renderable tiles to prevent rendering duplicate features in some sparse tilesets ([#6803](https://github.com/mapbox/mapbox-gl-js/pull/6803))

## 🐛 Bug fixes
### 🐛 Bug fixes
* Fix issue where `text-max-angle` property was being calculated incorrectly internally, causing potential rendering errors when `"text-placement": line`
* Require `feature.id` when using `Map#setFeatureState` ([#6974](https://github.com/mapbox/mapbox-gl-js/pull/6974))
* Fix issue with removing the `GeolocateControl` when user location is being used ([#6977](https://github.com/mapbox/mapbox-gl-js/pull/6977)) (h/t [sergei-zelinsky](https://github.com/sergei-zelinsky))
Expand All @@ -45,7 +83,7 @@ August 16, 2018
* Relax typing for equality and order expressions ([#6459](https://github.com/mapbox/mapbox-gl-js/issues/6459), fixed by [#6961](https://api.github.com/repos/mapbox/mapbox-gl-js/pulls/6961))
* Fix bug where `queryPadding` for all layers in a source was set by the first layer, causing incorrect querying on other layers and, in some cases, incorrect firing of events associated with individual layers ([#6909](https://github.com/mapbox/mapbox-gl-js/pull/6909))

## ✨ Features and improvements
### ✨ Features and improvements

* Performance Improvements:
* Stop unnecessary serialization of symbol source features. ([#7013](https://github.com/mapbox/mapbox-gl-js/pull/7013))
Expand All @@ -62,7 +100,7 @@ August 16, 2018

## 0.47.0

## ✨ Features and improvements
### ✨ Features and improvements
* Add configurable drag pan threshold ([#6809](https://github.com/mapbox/mapbox-gl-js/pull/6809)) (h/t [msbarry](https://github.com/msbarry))
* Add `raster-resampling` raster paint property ([#6411](https://github.com/mapbox/mapbox-gl-js/pull/6411)) (h/t [andrewharvey](https://github.com/andrewharvey))
* Add `symbol-placement: line-center` ([#6821](https://github.com/mapbox/mapbox-gl-js/pull/6821))
Expand All @@ -71,7 +109,7 @@ August 16, 2018
* Upgrade geojson-vt to 3.1.4 ([#6942](https://github.com/mapbox/mapbox-gl-js/pull/6942))
* Include link to license in compiled bundle ([#6975](https://github.com/mapbox/mapbox-gl-js/pull/6975))

## 🐛 Bug fixes
### 🐛 Bug fixes
* Use updateData instead of re-creating buffers for repopulated paint arrays ([#6853](https://github.com/mapbox/mapbox-gl-js/pull/6853))
* Fix ScrollZoom handler setting tr.zoom = NaN ([#6924](https://github.com/mapbox/mapbox-gl-js/pull/6924))
- Failed to invert matrix error ([#6486](https://github.com/mapbox/mapbox-gl-js/issues/6486), fixed by [#6924](https://github.com/mapbox/mapbox-gl-js/pull/6924))
Expand Down
3 changes: 0 additions & 3 deletions _config.yml

This file was deleted.

4 changes: 3 additions & 1 deletion batfish.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
const webpack = require('webpack');
const { webpack } = require('@mapbox/batfish');
const path = require('path');

module.exports = () => {
const config = {
siteBasePath: '/mapbox-gl-js',
siteOrigin: 'https://www.mapbox.com',
pagesDirectory: `${__dirname}/docs/pages`,
outputDirectory: path.join(__dirname, '_site'),
stylesheets: [
`${__dirname}/docs/components/site.css`,
`${__dirname}/docs/components/prism_highlight.css`,
Expand Down
21 changes: 0 additions & 21 deletions build/set-deploy-env.sh

This file was deleted.

18 changes: 18 additions & 0 deletions docs/components/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,24 @@ export default class extends React.Component {
directives. For Mapbox, you can use this <code>connect-src</code> directive:</p>
<pre><code>{`connect-src https://*.tiles.mapbox.com https://api.mapbox.com`}</code></pre>
</div>
<div>
<h2 className='strong' id='mapbox-css'>Mapbox CSS</h2>
<p>
The CSS referenced in the Quickstart is used to style DOM elements created by Mapbox code.
Without the CSS, elements like Popups and Markers won't work.
</p>
<p>
Including it with a {'<link>'} in the head of the document via the Mapbox CDN is
the simplest and easiest way to provide the CSS,
but it is also bundled in the Mapbox module, meaning that if you have a bundler
that can handle CSS, you can import the CSS from
<pre><code>{`mapbox-gl/dist/mapbox-gl.css`}</code></pre>.
</p>
<p>
Note too that if the CSS isn't available by the first render, as soon as the CSS is provided,
the DOM elements that depend on this CSS should recover.
</p>
</div>
</div>
</section>
);
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/example/display-and-style-rich-text-labels.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div id='map'></div>
<script>
mapboxgl.setRTLTextPlugin('https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.0/mapbox-gl-rtl-text.js');

var map = new mapboxgl.Map({
container: 'map', // container id
style: 'mapbox://styles/mapbox/streets-v10', // stylesheet location
Expand Down
12 changes: 12 additions & 0 deletions docs/pages/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const plugins = {
"description": "enables users to compare two maps by swiping left and right",
"example": "mapbox-gl-compare"
},
"mapbox-gl-controls": {
"website": "https://github.com/bravecow/mapbox-gl-controls",
"description": "alternative basic map controls"
},
"mapbox-gl-directions": {
"website": "https://github.com/mapbox/mapbox-gl-directions",
"description": "adds a control which allows users to plot driving, walking, and cycling directions on the map",
Expand All @@ -43,6 +47,10 @@ const plugins = {
"description": "adds a Geocoder control to Mapbox GL JS",
"example": "mapbox-gl-geocoder"
},
"mapbox-gl-style-switcher": {
"website": "https://github.com/el/style-switcher",
"description": "adds a control to switch between styles"
},
"mapboxgl-minimap": {
"website": "https://github.com/aesqe/mapboxgl-minimap",
"description": "adds a control showing a miniature overview of the current map"
Expand Down Expand Up @@ -91,6 +99,10 @@ const plugins = {
"elm-mapbox": {
"website": "https://package.elm-lang.org/packages/gampleman/elm-mapbox/latest/",
"description": md`provides an [Elm](https://elm-lang.org) integration for Mapbox GL JS`
},
"ember-mapbox-gl": {
"website": "https://github.com/kturney/ember-mapbox-gl",
"description": md`provides an [Ember](http://emberjs.com) integration for Mapbox GL JS`
}
},
"Utility Libraries": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mapbox-gl",
"description": "A WebGL interactive maps library",
"version": "0.49.0",
"version": "0.50.0",
"main": "dist/mapbox-gl.js",
"style": "dist/mapbox-gl.css",
"license": "SEE LICENSE IN LICENSE.txt",
Expand Down
2 changes: 1 addition & 1 deletion src/style-spec/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mapbox/mapbox-gl-style-spec",
"description": "a specification for mapbox gl styles",
"version": "13.2.0",
"version": "13.3.0",
"author": "Mapbox",
"keywords": [
"mapbox",
Expand Down
1 change: 0 additions & 1 deletion test/unit/util/mapbox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ test("mapbox", (t) => {
event.postTurnstileEvent(mapboxTileURLs);

const laterToday = now + 1;
now = laterToday;
withFixedDate(t, laterToday, () => event.postTurnstileEvent(mapboxTileURLs));

const tomorrow = laterToday + ms25Hours; // Add a day
Expand Down

0 comments on commit 782d705

Please sign in to comment.