Mercurial > pub > ImplabJs
diff src/djol/CoordPickerTool.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/CoordPickerTool.js Wed Jun 05 17:44:17 2019 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -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; - }); - } - }); -}); \ No newline at end of file