Clean up OpenLayers integration
[gpl/argeo-suite.git] / js / src / geo / MapPart.js
index 5711233a629767c5647405cbcf40e11b32a2c750..b7fd086727e33f5842af8b7990d92a9a793365f6 100644 (file)
@@ -16,26 +16,11 @@ export default class MapPart {
        //
        // ABSTRACT METHODS
        //
-
-       /** Zoom the map to the given value. */
-       setZoom(zoom) {
-               throw new Error("Abstract method");
-       }
-
        /** Set the center of the map to the given coordinates. */
        setCenter(lng, lat) {
                throw new Error("Abstract method");
        }
 
-       /** Add a single point. */
-       addPoint(lng, lat, style) {
-               throw new Error("Abstract method");
-       }
-
-       addUrlLayer(url, format) {
-               throw new Error("Abstract method");
-       }
-
        //
        // EXTENSIONS
        //
@@ -69,4 +54,9 @@ export default class MapPart {
        getMapDivCssClass() {
                throw new Error("Abstract method");
        }
+
+       newObject(js) {
+               const func = new Function(js);
+               return (func());
+       }
 }