-
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?
Conversation
@@ -260,6 +289,8 @@ export default Ember.Component.extend(ParentMixin, { | |||
event.stop(); | |||
}); | |||
listeners.pushObjects([ mapListener, dataListener ]); | |||
}else if (tool.dataId === 'Point') { |
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
let isDefaultIcon = tool.icon.id === tool.default.icon.id; | ||
let isDefaultColor = tool.customColor.id === tool.default.customColor.id; | ||
|
||
if (! isDefaultIcon || ! isDefaultColor) { |
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.
if (!isDefaultIcon || !isDefaultColor) {
</div> | ||
{{/if}} | ||
{{#if (is-equal opt.type 'customColor')}} | ||
<div class="dropdown {{if customColorMenu 'open'}}"> |
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.
consistent naming between iconDropDown
and customColorMenu
, since both are dropdowns
addon/utils/tools.js
Outdated
id: 'pin', | ||
display: 'Pin' | ||
}], | ||
icon:{ |
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.
spacing
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.
Not sure about putting the defaults and the list items in this config.
Icons http://map-icons.com/ |
|
package.json
Outdated
"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 comment
The 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.
|
<select onchange={{action "updateOptionValue" activeTool 'icon' value="target.value"}}> | ||
{{#each activeTool.icons as |icon|}} | ||
<option value={{icon.display}}> | ||
<div> | ||
<img src={{icon.path}} height="10px" width="10px"> |
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.
You should be able to render the svgs directly without making a file.
{{#dd.menu as |ddm|}} | ||
{{#each activeTool.icons as |icon|}} | ||
<div {{action 'updateOptionValue' activeTool 'icon' icon}}> | ||
<select onchange={{action "updateOptionValue" activeTool 'icon' value="target.value"}}> |
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.
Looking good 👍
Just tried out the latest changes. Things look good. A few things came to mind:
|
Complementary function: http://stackoverflow.com/a/37657940/483616 |
JsHint error removed from marker icon
addon/utils/tools.js
Outdated
icon: { | ||
id: 'default', | ||
display: 'Default', | ||
path: 'google-maps-markup/images/spotlight-poi-highlighted_hdpi.png', |
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.
This icon needs to be removed.
* Marker DropDown Added * marker dropdown code updated * indent fixed
* Marker DropDown Added * marker dropdown code updated * indent fixed * marker icon style updated * color value changed
Issues Description:-
Both Issues are fixed and latest code have been updated here. This branch is ready to merge. We are clear now. |
No description provided.