Mercurial > pub > ImplabJs
comparison src/djol/OlTool.js @ 34:27e8e9e38e07 default tip
Слияние
author | nickolay |
---|---|
date | Wed, 05 Jun 2019 20:44:15 +0300 |
parents | 8af8e840dd49 1dc2fd263b90 |
children |
comparison
equal
deleted
inserted
replaced
33:8af8e840dd49 | 34:27e8e9e38e07 |
---|---|
1 define(["dojo/_base/declare", "dojo/_base/lang", "implab/safe", "dojo/dom-class", "dojo/dom-construct", "dijit/_TemplatedMixin", "dijit/_WidgetBase"], | |
2 function (declare, lang, safe, domClass, domConstruct, _TemplatedMixin, _WidgetBase) { | |
3 return declare([_WidgetBase, _TemplatedMixin], { | |
4 map : null, | |
5 control : null, | |
6 elementName : "div", | |
7 | |
8 constructor: function () { | |
9 lang.mixin(this, arguments[0]); | |
10 safe.argumentNotNull(this.map, "map"); | |
11 safe.argumentNotNull(this.control, "control"); | |
12 }, | |
13 | |
14 buildRendering : function() { | |
15 this.domNode = domConstruct.create(this.elementName); | |
16 domClass.add(this.domNode, this.baseClass); | |
17 this.control.setTarget(this.domNode); | |
18 this.control.setMap(this.map.olMap || this.map); | |
19 } | |
20 }); | |
21 }); |