Repository navigation
adds default marker files - #2440
Conversation
|
Two thoughts here:
One minor thought: it always seems to me that the white dot on the markers should either be a) gone or b) alpha-transparent instead of white. Anyone else? |
|
I could do without the white dot. |
I chose red because it is higher contrast from more basemap features (e.g. that blue is pretty darn similar to interstate highway shields in both Streets and Emerald). I also think it's more readable for the markers to be a different color than the user dot (plus the two shades of blue clash). It is more similar to Google's and Apple's look, but I think there's a reason they both use red. I would still lean more towards red, unless there are any more considerations for keeping it blue.
I was going to remove it because I found it extraneous, but @samanpwbb pointed out that it does help a lot to articulate clustered markers, and I agree. I can try making it alpha-transparent. @bleege for the default markers for Android can you please confirm that:
|
Er, nevermind, this is not going to look good with clustered markers, which was the point of keeping the dot. |
|
I'm sold on red + white dot as is. Carry on 😃 Let's square away Android assets as well, then @mapbox/mobile can jump in and adjust code as necessary to shore this up. |
|
This looks great @nickidlugash, really like the change to red. |
|
Looks good to me. |
|
@nickidlugash Yep, Android sizes are documented here so it looks like your ratios above are 👌 . The assets generated from them also look great! Thanks! |
|
The iOS side is done. Over to @bleege for the Android side. |
|
@nickidlugash Do you have an SVG or similar vector source that we can roll into the project somehow for future reference? e.g. There may someday be higher-res requirements that can't simply scale up the largest we have here now, and we don't want to fish around trying to remember where the source is and/or recreate it. |
|
@incanus sure – where do you want me to put the source file? |
|
@nickidlugash Let's make a |
|
Actually, let's go with |
|
I'm going to wire up the Android side. |
|
I've hit a snag on Android. The current It also blows up when you need a bitmap scale <1x, which can happen on low DPI devices. Another case might be where a developer only includes hdpi bitmaps assets, then a user runs the app on a ldpi or mdpi phone. In this case we need to scale down. Going to push a commit that just uses a scale of 1x for the moment which on my Samsung S6 results in a comically large marker. This is so we can get this merged for iOS. We will need to come back to it for Android and fix this scaling problem before we delete the "default_marker" from the styles submodule. |
|
The strict resolution-dependent nature of this API has inconvenienced iOS developers too: #2198. |
6629144 to
aec429b
Compare
|
Going to rebase and merge next. |
aec429b to
8aacfd5
Compare
8aacfd5 to
21b42ee
Compare
|
@jfirebaugh Looks like LLVM is down again: EDIT: |
|
OK everything passed but Linux and node due to LLVM server issues. Since this change only affects iOS and Android, I'm going to merge. |

Ref #2106
@1ec5 @bleege @incanus @friedbunny I've added marker files to iOS. Looking at Android now.
While I'm doing that, here's some visuals – let me know if you have any feedback.
Streets
Emerald
Satellite w/ labels
Dark
Light