X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=js%2Fsrc%2Fgeo%2FMapPart.js;h=b7fd086727e33f5842af8b7990d92a9a793365f6;hb=12b80cad8670765da2cc8316c2c5d537cfbcbcd2;hp=5711233a629767c5647405cbcf40e11b32a2c750;hpb=7328e106f7523d006b9516651dc9f6dd5475b035;p=gpl%2Fargeo-suite.git diff --git a/js/src/geo/MapPart.js b/js/src/geo/MapPart.js index 5711233..b7fd086 100644 --- a/js/src/geo/MapPart.js +++ b/js/src/geo/MapPart.js @@ -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()); + } }