Fix: build, some metatagging errors

This commit is contained in:
Pieter Vander Vennet 2023-09-22 12:42:09 +02:00
parent df7b0f84db
commit 0d529e7cca
6 changed files with 13 additions and 22 deletions

View file

@ -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 (