From 1c134d757cfb23ffbac4a3041ec71e5d2611a16a Mon Sep 17 00:00:00 2001 From: orangemug Date: Thu, 1 Feb 2018 19:54:44 +0000 Subject: [PATCH] Fixes for export to add in mapbox access token. --- src/components/modals/ExportModal.jsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/modals/ExportModal.jsx b/src/components/modals/ExportModal.jsx index d093f38..56a6481 100644 --- a/src/components/modals/ExportModal.jsx +++ b/src/components/modals/ExportModal.jsx @@ -43,7 +43,10 @@ class Gist extends React.Component { ...this.state, saving: true }); - const preview = this.state.preview && (this.props.mapStyle.metadata || {})['maputnik:openmaptiles_access_token']; + + const preview = this.state.preview; + + const mapboxToken = (this.props.mapStyle.metadata || {})['maputnik:mapbox_access_token']; const mapStyleStr = preview ? styleSpec.format(stripAccessTokens(style.replaceAccessToken(this.props.mapStyle))) : @@ -66,6 +69,7 @@ class Gist extends React.Component {