-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Custom Map Markers #3840
Custom Map Markers #3840
Conversation
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.
10x @deecay!
Some UX issues I noticed:
-
The different markers types do not indicate the same exact location. Here's all of 'em together:
The "X" marks the correct coordinate and only "Doughnut" seems to adhere to it. -
There actually is already a design related tab, which is "Map Settings" since it allows changing tile color themes. So better group 'em in one tab named "Style", with "Tile" and "Marker" headings.
-
"Text Color" seems unclear to me cause there ain't no text. Perhaps "Foreground color" would be more suitable?
-
I fiddled with the settings but it didn't take effect. Then I realized it's disabled by default with the checkbox on top. To avoid such confusion I suggest:
a. Disable the color boxes when unchecked.
b. Perhaps change checkbox label to sth like "Override default style". -
Let's help our users know what font icons they can use. Add a link next to "Icon Font" that points to FA4.7 icons, like we do here.
@ranbena, thanks for your evaluation and input.
I didn't expect this kind of behavior. Thanks for examining. This should be adjustable, so I will look into this first. For all other suggestions, I will make additional commits after fixing #1. |
@ranbena The 'x' should come at the center point of the bottom edge of the rectangle? Right on, or do we want some margin between the 'x' and the box? Another option could be that 'x' comes at the rectangle's center of gravity. Icon will hide what's at the 'x' point, but it is arguably more accurate. WDYT? |
In addition to the feedback, I have
|
Sorry for disappearing @deecay. Was on vacation 🏝 |
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.
@deecay great work! Really!
I put some comments/suggestions in code.
<div class="col-xs-6"> | ||
<div class="form-group"> | ||
<label>Icon Font | ||
<span class="m-1-5" uib-popover-html="'Available <a href="https://fontawesome.com/v4.7.0/icons/" target="_blank">icons.</a>'" |
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.
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.
Much better 😄
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.
Almost there!
Fixed alignment and styling for color-box dropdown
@ranbena, ready for review again. |
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.
🕺Go ahead if and remove the '[WIP]' and I'll merge.
Thank you @ranbena for your support. |
Thanks @deecay for putting in the time to make this a feature available to all Redash users 🍾 |
What type of PR is this? (check all applicable)
Description
Adds the feature to customize the looks of the map markers. You can change marker colors according to visualizations/ColorPalette, and marker icons with Font Awesome.
Before
After (Showing train stations with 'train' icon)
Related Tickets & Documents
Library used: https://github.com/marslan390/BeautifyMarker
Available icons: https://fontawesome.com/v4.7.0/icons/
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
editor (rectangle shape with 'ambulance' icon)
(dot shape, similar look to current circleMarker)
(circle with icon)
WIP Because...
Should we create a list of possible icon names as a list (+600)?