Mercurial > pub > ImplabJs
view src/djol/CoordPickerTool.js @ 33:8af8e840dd49
added return fn
author | nickolay |
---|---|
date | Wed, 05 Jun 2019 17:44:17 +0300 |
parents | 9c21e656cbec |
children |
line wrap: on
line source
define (["dojo/_base/declare", "./_OneshotTool", "implab/safe", "dojo/when"] , function(declare, _OneshotTool, safe, when) { return declare([_OneshotTool], { _map : null, _proj : null, constructor : function(opts) { safe.argumentNotNull(opts && opts.map, "opts.map"); this._map = opts.map; this._proj = opts.proj; }, invoke : function() { var me = this; return when(me._map.awaitMapEvent('singleclick'), function(evt){ if (me._proj) { // тут можно преобразовать проекции } return evt; }); } }); });