diff src/djol/OlTool.js @ 34:27e8e9e38e07 default tip

Слияние
author nickolay
date Wed, 05 Jun 2019 20:44:15 +0300
parents 8af8e840dd49 1dc2fd263b90
children
line wrap: on
line diff
--- a/src/djol/OlTool.js	Wed Jun 05 17:44:17 2019 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-define(["dojo/_base/declare", "dojo/_base/lang", "implab/safe", "dojo/dom-class", "dojo/dom-construct", "dijit/_TemplatedMixin", "dijit/_WidgetBase"],
-    function (declare, lang, safe, domClass, domConstruct, _TemplatedMixin, _WidgetBase) {
-    return declare([_WidgetBase, _TemplatedMixin], {
-        map : null,
-        control : null,
-        elementName : "div",
-        
-        constructor: function () {
-            lang.mixin(this, arguments[0]);
-            safe.argumentNotNull(this.map, "map");
-            safe.argumentNotNull(this.control, "control");
-        },
-        
-        buildRendering : function() {
-            this.domNode = domConstruct.create(this.elementName);
-            domClass.add(this.domNode, this.baseClass);
-            this.control.setTarget(this.domNode);
-            this.control.setMap(this.map.olMap || this.map);
-        }
-    });
-});
\ No newline at end of file