mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-14 20:23:27 +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
|
||||
}
|
||||
|
||||
function ensureHasTimestamp(style) {
|
||||
if('created' in style) return style
|
||||
style.created = new Date().toJSON()
|
||||
return style
|
||||
}
|
||||
|
||||
function ensureHasNoRefs(style) {
|
||||
const derefedStyle = {
|
||||
...style,
|
||||
|
@ -34,7 +28,7 @@ function ensureHasNoRefs(style) {
|
|||
}
|
||||
|
||||
function ensureStyleValidity(style) {
|
||||
return ensureHasNoRefs(ensureHasId(ensureHasTimestamp(style)))
|
||||
return ensureHasNoRefs(ensureHasId(style))
|
||||
}
|
||||
|
||||
function indexOfLayer(layers, layerId) {
|
||||
|
|
Loading…
Reference in a new issue