forked from MapComplete/MapComplete
Fix: build, some metatagging errors
This commit is contained in:
parent
df7b0f84db
commit
0d529e7cca
6 changed files with 13 additions and 22 deletions
|
@ -316,7 +316,9 @@ export default class MetaTagging {
|
|||
helpers: Record<ExtraFuncType, (feature: Feature) => Function>
|
||||
): (feature: Feature, tags: UIEventSource<Record<string, any>>) => boolean {
|
||||
if (MetaTagging.metataggingObject) {
|
||||
const funcName = "metaTaggging_for_" + layer.id
|
||||
const id = layer.id.replace(/[^a-zA-Z0-9_]/g, "_")
|
||||
|
||||
const funcName = "metaTaggging_for_" + id
|
||||
if (typeof MetaTagging.metataggingObject[funcName] !== "function") {
|
||||
console.log(MetaTagging.metataggingObject)
|
||||
throw (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue