-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
viatkinviatkin
committed
Apr 24, 2024
1 parent
3fabd97
commit 7617335
Showing
2 changed files
with
43 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,37 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Service.extend({ | ||
|
||
/** | ||
Flag: indicates whether identification is performed when right-clicking on map. | ||
Flag: indicates whether tool is performed when right-clicking on map. | ||
@property identifyOnRightClick | ||
@property isRightClickToolAvailable | ||
@type Bool | ||
@default false | ||
*/ | ||
identifyOnRightClick: false, | ||
isRightClickToolAvailable: false, | ||
|
||
/** | ||
Map tool that should be enabled when right clicking | ||
@property rightClickToolName | ||
@type String | ||
@default 'identify-visible-rectangle' | ||
*/ | ||
rightClickToolName: 'identify-visible-rectangle', | ||
|
||
/** | ||
Right click map tool options | ||
@property rightClickToolProperties | ||
@type Object | ||
@default null | ||
*/ | ||
rightClickToolProperties: null, | ||
|
||
/** | ||
List of available tools for switching to rightClickTool-mode and saving active state of working tool after | ||
@property rightClickAvailiblePrevMapTools | ||
@type String [] | ||
*/ | ||
rightClickAvailiblePrevMapTools: ['drag', 'zoom-in', 'zoom-out'] | ||
}); |