mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 06:37:45 +01:00
Do not generate created timestamp
This commit is contained in:
parent
12411ee886
commit
56aacb0149
1 changed files with 1 additions and 7 deletions
|
@ -19,12 +19,6 @@ function ensureHasId(style) {
|
||||||
return style
|
return style
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensureHasTimestamp(style) {
|
|
||||||
if('created' in style) return style
|
|
||||||
style.created = new Date().toJSON()
|
|
||||||
return style
|
|
||||||
}
|
|
||||||
|
|
||||||
function ensureHasNoRefs(style) {
|
function ensureHasNoRefs(style) {
|
||||||
const derefedStyle = {
|
const derefedStyle = {
|
||||||
...style,
|
...style,
|
||||||
|
@ -34,7 +28,7 @@ function ensureHasNoRefs(style) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensureStyleValidity(style) {
|
function ensureStyleValidity(style) {
|
||||||
return ensureHasNoRefs(ensureHasId(ensureHasTimestamp(style)))
|
return ensureHasNoRefs(ensureHasId(style))
|
||||||
}
|
}
|
||||||
|
|
||||||
function indexOfLayer(layers, layerId) {
|
function indexOfLayer(layers, layerId) {
|
||||||
|
|
Loading…
Reference in a new issue