Mercurial > pub > ImplabJs
comparison src/djol/OlTool.js @ 10:8705103f074f
Слияние
author | cin |
---|---|
date | Mon, 21 Aug 2017 18:03:00 +0300 |
parents | f0035923ff3e |
children |
comparison
equal
deleted
inserted
replaced
9:37e9e6bbe87a | 10:8705103f074f |
---|---|
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 }); |