From 0bf17bae37a269904b2d1000072b7625a4d206c7 Mon Sep 17 00:00:00 2001 From: Jin Igarashi Date: Sat, 27 Nov 2021 13:48:05 +0000 Subject: [PATCH] Updated README --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7319188..919e9ca 100644 --- a/README.md +++ b/README.md @@ -78,13 +78,17 @@ mapboxgl.accessToken='your mapbox access token' ``` - for mapbox v2 user +There is an option of `accessToken` in `MapboxExportControl`. Please put your accessToken when you create a instance of plugin. ```ts +mapboxgl.accessToken='your mapbox access token' const map = new mapboxgl.Map({ container: 'map', style: 'mapbox://styles/mapbox/streets-v11', - accessToken: 'your mapbox access token' }); +map.addControl(new MapboxExportControl({ + accessToken: 'your mapbox access token' +}), 'top-right'); ``` ### Options