Mercurial > pub > ImplabJs
view src/djol/OlTool.js @ 19:8332e287d552
fix (click on cospas)
author | nickolay |
---|---|
date | Wed, 04 Oct 2017 21:05:21 +0300 |
parents | f0035923ff3e |
children |
line wrap: on
line source
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); } }); });