Mercurial > pub > ImplabJs
view src/djol/CoordPickerTool.js @ 23:1d72fddc319a
make eslint happy
author | cin |
---|---|
date | Wed, 06 Dec 2017 14:19:45 +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; }); } }); });