Introduce tight integration with JavaScript classes
[gpl/argeo-suite.git] / js / src / geo / MapPart.js
index 5711233a629767c5647405cbcf40e11b32a2c750..d2f712c629fc7711368146300c84c1ff1f89a812 100644 (file)
@@ -69,4 +69,9 @@ export default class MapPart {
        getMapDivCssClass() {
                throw new Error("Abstract method");
        }
+
+       newObject(js) {
+               const func = new Function(js);
+               return (func());
+       }
 }