Skip to content

Commit 81f0763

Browse files
authored
Release v1.4.1 (#1159)
1 parent 5a90472 commit 81f0763

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

CHANGELOG.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
## Changelog
1+
# Changelog
22

3-
# 1.4.0
3+
## 1.4.1
4+
5+
* Revert use of passive event listeners instead of `preventDefault` in https://github.com/mapbox/mapbox-gl-draw/pull/1158
6+
7+
## 1.4.0
48

59
* Reduce NPM package size and big dependency and dev environment cleanup by @mourner in https://github.com/mapbox/mapbox-gl-draw/pull/1119 https://github.com/mapbox/mapbox-gl-draw/pull/1053
610
* Add Bezier Curve mode by @Jeff-Numix in https://github.com/mapbox/mapbox-gl-draw/pull/1068
@@ -9,20 +13,20 @@
913
* Adding sorting rank value for MultiLineString by @zhangchn in https://github.com/mapbox/mapbox-gl-draw/pull/1142
1014
* Expose constants and lib APIs to make it easier to write custom draw modes by @thaddmt in https://github.com/mapbox/mapbox-gl-draw/pull/1100
1115

12-
# 1.3.0
16+
## 1.3.0
1317

1418
- ⚠️ Removed GeoJSON validation in `draw.add` — responsibility for valid input is now on the user. #1052
1519
- Fixed NPM security warnings about dependencies. #1052
1620
- Fixed midpoint calculation when terrain is enabled. #1039
1721
- Reduced the size of the plugin's CSS code from 33KB to 5KB. #1038 (h/t @johanrd)
1822
- Fixed `simple_select` mode handling on touch devices. #1008 (h/t @corinv)
1923

20-
# 1.2.2
24+
## 1.2.2
2125

2226
### Bug Fixes:
2327
- Fix midpoint calculation when using mapbox-gl-draw with 3d terrain
2428

25-
# 1.2.1
29+
## 1.2.1
2630

2731
### Bug Fixes:
2832
- Upgrade `peerDependencies` to allow `mapbox-gl@2.0.0+` to be used with gl-draw.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import MapboxDraw from "@mapbox/mapbox-gl-draw";
2828
**When using a CDN**
2929

3030
```html
31-
<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.4.0/mapbox-gl-draw.js'></script>
31+
<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.4.1/mapbox-gl-draw.js'></script>
3232
```
3333

3434
#### CSS
@@ -40,7 +40,7 @@ import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css'
4040

4141
**When using CDN**
4242
```html
43-
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.4.0/mapbox-gl-draw.css' type='text/css' />
43+
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.4.1/mapbox-gl-draw.css' type='text/css' />
4444
```
4545

4646
### Typescript
@@ -58,7 +58,7 @@ mapboxgl.accessToken = 'YOUR_ACCESS_TOKEN';
5858

5959
var map = new mapboxgl.Map({
6060
container: 'map',
61-
style: 'mapbox://styles/mapbox/streets-v11',
61+
style: 'mapbox://styles/mapbox/streets-v12',
6262
center: [40, -74.50],
6363
zoom: 9
6464
});

bench/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
88

99
<link href='https://www.mapbox.com/base/latest/base.css' rel='stylesheet' />
10-
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/v2.10.0/mapbox-gl.css'/>
10+
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/v2.12.0/mapbox-gl.css'/>
1111
<link rel='stylesheet' href='/dist/mapbox-gl-draw.css'/>
1212

1313
<style>
@@ -47,7 +47,7 @@
4747
<div id="map"></div>
4848
<div id="tests"></div>
4949
<div id="logs"></div>
50-
<script src="https://api.mapbox.com/mapbox-gl-js/v2.10.0/mapbox-gl.js"></script>
50+
<script src="https://api.mapbox.com/mapbox-gl-js/v2.12.0/mapbox-gl.js"></script>
5151
<script src="/dist/mapbox-gl-draw-unminified.js"></script>
5252
<script src="/dist/bench.js"></script>
5353
</body>

bench/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function createMap(options) {
119119

120120
const map = new mapboxgl.Map(Object.assign({
121121
container: 'map',
122-
style: 'mapbox://styles/mapbox/streets-v8'
122+
style: 'mapbox://styles/mapbox/streets-v12'
123123
}, options));
124124

125125
const draw = new MapboxDraw(options);

debug/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
66
<meta charset=utf-8 />
77
<title>Mapbox GL Draw | Mapbox</title>
8-
<link href='https://api.mapbox.com/mapbox-gl-js/v2.10.0/mapbox-gl.css' rel='stylesheet' />
8+
<link href='https://api.mapbox.com/mapbox-gl-js/v2.12.0/mapbox-gl.css' rel='stylesheet' />
99
<link href='/dist/mapbox-gl-draw.css' rel='stylesheet' />
1010
<link href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.1.0/mapbox-gl-geocoder.css' rel='stylesheer' />
1111
<style>
@@ -48,7 +48,7 @@
4848
<button id='removeBtn'>remove draw</button>
4949
<button id='flipStyleBtn'>change style</button>
5050
</div>
51-
<script src='https://api.mapbox.com/mapbox-gl-js/v2.10.0/mapbox-gl.js'></script>
51+
<script src='https://api.mapbox.com/mapbox-gl-js/v2.12.0/mapbox-gl.js'></script>
5252
<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.2.0/mapbox-gl-geocoder.min.js'></script>
5353
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.2.0/mapbox-gl-geocoder.css' type='text/css' />
5454
<script src='/debug/access_token_generated.js'></script>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mapbox/mapbox-gl-draw",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "A drawing component for Mapbox GL JS",
55
"homepage": "https://github.com/mapbox/mapbox-gl-draw",
66
"author": "mapbox",

0 commit comments

Comments
 (0)