Skip to content

Commit

Permalink
jscs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viatkinviatkin committed Apr 24, 2024
1 parent 7617335 commit e79d373
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions addon/components/flexberry-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,16 +544,18 @@ let FlexberryMapComponent = Ember.Component.extend(
// ПКМ обработчик карты пока умеет работать только с identify-visible-rectangle
// this.rightClickToolProperties должен содержать перечень слоев для идентификации
// Включаем инструмент идентификации
let identifyTool = leafletMap.flexberryMap.tools.enable(this.get('maptoolOptionsService.rightClickToolName'), this.get('maptoolOptionsService.rightClickToolProperties'));
let rightClickToolName = this.get('maptoolOptionsService.rightClickToolName');
let rightClickToolProperties = this.get('maptoolOptionsService.rightClickToolProperties');
let identifyTool = leafletMap.flexberryMap.tools.enable(rightClickToolName, rightClickToolProperties);
let identifyEditTools = Ember.get(identifyTool, '_editTools');

// Если _editTools не доступно
if (Ember.isNone(identifyEditTools)) {
console.error('The handler for right click map tool is not defined')
console.error('The handler for right click map tool is not defined');
leafletMap.flexberryMap.tools.enable('drag');
return;
}

// Инициируем нажатие ЛКМ для создания стартовой точки и перехода в состояние "перетаскивание" инструмента
let newMouseDownEvent = new MouseEvent('mousedown');
identifyEditTools.onMousedown({
Expand Down

0 comments on commit e79d373

Please sign in to comment.