Mercurial > pub > ImplabJs
comparison src/djol/CoordPickerTool.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", "./_OneshotTool", "implab/safe", "dojo/when"] , function(declare, _OneshotTool, safe, when) { | |
| 2 return declare([_OneshotTool], { | |
| 3 _map : null, | |
| 4 _proj : null, | |
| 5 | |
| 6 constructor : function(opts) { | |
| 7 safe.argumentNotNull(opts && opts.map, "opts.map"); | |
| 8 | |
| 9 this._map = opts.map; | |
| 10 this._proj = opts.proj; | |
| 11 }, | |
| 12 | |
| 13 invoke : function() { | |
| 14 var me = this; | |
| 15 | |
| 16 return when(me._map.awaitMapEvent('singleclick'), function(evt){ | |
| 17 if (me._proj) { | |
| 18 // тут можно преобразовать проекции | |
| 19 } | |
| 20 return evt; | |
| 21 }); | |
| 22 } | |
| 23 }); | |
| 24 }); |
