Skip to content

Commit f591be1

Browse files
committed
Format map.fire call to match breaking change depending on version
ref #766 blah Pass a version option
1 parent 85f39bf commit f591be1

14 files changed

+10468
-28
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Install dependencies, build the source files and crank up a server via:
8484
```
8585
git clone [email protected]:mapbox/mapbox-gl-draw.git
8686
npm install
87-
npm start & open http://localhost:9966/debug/?access_token=<token>
87+
npm start & open http://localhost:9967/debug/?access_token=<token>
8888
```
8989

9090
### Testing

debug/index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@
8080

8181
map.addControl(new mapboxgl.NavigationControl(), 'top-left');
8282

83-
var Draw = window.Draw = new MapboxDraw();
83+
var Draw = window.Draw = new MapboxDraw({
84+
mapboxglVersion: mapboxgl.version
85+
});
86+
8487
var drawIsActive = true;
8588
map.addControl(Draw, 'bottom-right');
8689

0 commit comments

Comments
 (0)