-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add additional marker colors and icons #17
base: master
Are you sure you want to change the base?
Changes from 5 commits
c9bef6b
7475e50
d45a787
712b76b
11691f0
e7e0a87
a4f6de2
5c2a92b
cdef4b3
529c642
bd2aad5
e854818
10d8440
92dca5b
1e8f60f
6a8aa72
47bbc78
16b628e
d58cb39
ce48af9
0043f71
20f98a0
f0258d0
19a83de
1af63b9
70f76f9
af5cf3e
5e8fab4
51e9b65
95f7538
163b8d7
756b789
de9dce8
b45a2c6
2e94535
6c83041
7d2c689
8c930d3
e329b53
4800f39
6a3e0ac
3ae2bf4
40c0b12
35d7696
a11ab0e
31cc0bf
b826b8a
4a99ac9
349144e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,23 @@ | |
{{color-palette selected=(get activeTool opt.id) onselect=(action 'updateOptionValue' activeTool opt.id)}} | ||
</div> | ||
{{/if}} | ||
{{#if (is-equal opt.type 'icon')}} | ||
<div class="form-group"> | ||
<label>{{opt.name}}</label> | ||
{{#bs-dropdown as |dd|}} | ||
{{#dd.button}}{{activeTool.icon.display}} <img src={{activeTool.icon.path}} height="10px" width="10px"/>{{/dd.button}} | ||
{{#dd.menu as |ddm|}} | ||
{{#each activeTool.icons as |icon|}} | ||
<div {{action 'updateOptionValue' activeTool 'icon' icon}}> | ||
<img src={{icon.path}} height="10px" width="10px"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should be able to render the svgs directly without making a file. |
||
{{#ddm.item}}{{icon.display}}{{/ddm.item}} | ||
{{ddm.divider}} | ||
</div> | ||
{{/each}} | ||
{{/dd.menu}} | ||
{{/bs-dropdown}} | ||
</div> | ||
{{/if}} | ||
{{/each}} | ||
</form> | ||
{{/if}} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
@import "ember-bootstrap/bootstrap"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,11 @@ | |
"ember-uuid": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
"bootstrap": "3.3.7", | ||
"broccoli-asset-rev": "^2.4.5", | ||
"broccoli-merge-trees": "^1.2.1", | ||
"broccoli-static-compiler": "^0.2.1", | ||
"ember-bootstrap": "1.0.0-alpha.10", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd rather not use this heavy addon since we don't use it anywhere else in MapGeo, and most likely we'll be updating to material-design or BS4 in the near future. |
||
"ember-cli": "2.10.0", | ||
"ember-cli-app-version": "^2.0.0", | ||
"ember-cli-blanket": "^0.9.9", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style nitpick