Mercurial > pub > ImplabJs
comparison src/djol/coordPickerTool.js @ 16:1eeae195b234
Разработка кнопки выбора координат с карт
author | nickolay |
---|---|
date | Tue, 19 Sep 2017 12:34:16 +0300 |
parents | src/djol/CoordPickerTool.js@b85df31b7e0e |
children |
comparison
equal
deleted
inserted
replaced
15:b85df31b7e0e | 16:1eeae195b234 |
---|---|
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.awaitMapEvent('singleclick'), function(evt){ | |
17 if (me._proj) { | |
18 // тут можно преобразовать проекции | |
19 } | |
20 return evt; | |
21 }); | |
22 } | |
23 }); | |
24 }); |