mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-01 03:43:20 +01:00
Slugify result in lower case
This commit is contained in:
parent
3c72d07a88
commit
f17b02b1fe
1 changed files with 4 additions and 1 deletions
|
@ -42,7 +42,10 @@ class ExportModal extends React.Component {
|
||||||
const blob = new Blob([tokenStyle], {type: "application/json;charset=utf-8"});
|
const blob = new Blob([tokenStyle], {type: "application/json;charset=utf-8"});
|
||||||
let exportName;
|
let exportName;
|
||||||
if(this.props.mapStyle.name) {
|
if(this.props.mapStyle.name) {
|
||||||
exportName = Slugify(this.props.mapStyle.name, '_')
|
exportName = Slugify(this.props.mapStyle.name, {
|
||||||
|
replacement: '_',
|
||||||
|
lower: true
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
exportName = this.props.mapStyle.id
|
exportName = this.props.mapStyle.id
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue