diff --git a/src/components/modals/ExportModal.jsx b/src/components/modals/ExportModal.jsx
index c08a9c6..c6f397d 100644
--- a/src/components/modals/ExportModal.jsx
+++ b/src/components/modals/ExportModal.jsx
@@ -235,10 +235,24 @@ class ExportModal extends React.Component {
}
downloadStyle() {
- const blob = new Blob([styleSpec.format(stripAccessTokens(this.props.mapStyle))], {type: "application/json;charset=utf-8"});
+ const tokenStyle = styleSpec.format(stripAccessTokens(style.replaceAccessToken(this.props.mapStyle)));
+
+ const blob = new Blob([tokenStyle], {type: "application/json;charset=utf-8"});
saveAs(blob, this.props.mapStyle.id + ".json");
}
+ changeMetadataProperty(property, value) {
+ const changedStyle = {
+ ...this.props.mapStyle,
+ metadata: {
+ ...this.props.mapStyle.metadata,
+ [property]: value
+ }
+ }
+ this.props.onStyleChanged(changedStyle)
+ }
+
+
render() {
return
+