You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Android currently uses 1 image size for Compass which is then scaled per density. iOS provides 3 different assets for each of their primary densities. Let's repurpose those and fill in missing densities using @3x as the source and scale it down.
So, change of direction here. Instead of adjusting an iOS styled compass, I've replaced it with a more Android styled compass image. This will likely (and should) get replaced in time, but for an initial release this should work. Let's see how it plays in test though.
Hmm I think I'm going to disable the elevation on the FAB again. Looks nice on my phones (well except for Samsung), then I see a screenshot like this...
@bleege this looks way better, but IMHO it is a bit pixelated.
Could a designer produce an svg for us?
Android Studio has a Vector Asset wizard that generates pngs.
I discussed this with @tatsvc and she's graciously agreed to update the compass image. She'll touch up the original design and then produce sizes for mdpi, hdpi, xhdpi, and xxhdpi. She'll post the results to this ticket and then I'll re-integrate them into the SDK.
Activity
bleege commentedon Aug 26, 2015
Sizes of iOS Compass Images:
1x = 36x36
2x = 72x72
3x = 104x104
bleege commentedon Aug 26, 2015
Going to use the following scaling rules as it was the one suggested by Google. ;-)
Accordingly, will start with this
1x == mdpiand2x == xhdpi.http://stackoverflow.com/questions/11581649/about-android-image-and-asset-sizes
#2182 - Replacing existing iOS style compass with more Android style …
bleege commentedon Aug 27, 2015
So, change of direction here. Instead of adjusting an iOS styled compass, I've replaced it with a more Android styled compass image. This will likely (and should) get replaced in time, but for an initial release this should work. Let's see how it plays in test though.
New Compass Image On Samsung S5
ljbade commentedon Aug 27, 2015
Nice @bleege, looks way cooler.
ljbade commentedon Aug 27, 2015
Hmm I think I'm going to disable the elevation on the FAB again. Looks nice on my phones (well except for Samsung), then I see a screenshot like this...
bleege commentedon Aug 27, 2015
Merged.
tobrun commentedon Sep 1, 2015
@bleege this looks way better, but IMHO it is a bit pixelated.
Could a designer produce an svg for us?
Android Studio has a Vector Asset wizard that generates pngs.
ljbade commentedon Sep 1, 2015
I also noticed that the white section of the compass is transparent. So it lets through the map in that triagngle.
bleege commentedon Sep 3, 2015
I discussed this with @tatsvc and she's graciously agreed to update the compass image. She'll touch up the original design and then produce sizes for
mdpi,hdpi,xhdpi, andxxhdpi. She'll post the results to this ticket and then I'll re-integrate them into the SDK.tatsvc commentedon Sep 3, 2015
I'm suggesting something like this with a subtle transparent outline, so it doesn't get lost on a dark map:
#2182 - Updating compass imagery
bleege commentedon Sep 3, 2015
Screenshot of the @tatsvc's new and improved compass imagery in action. 👌
tatsvc commentedon Sep 3, 2015
Awesome! Works really well on the black map as well! Yay
bleege commentedon Sep 3, 2015
Merged! Thanks again @tatsvc!
ljbade commentedon Sep 3, 2015
Wow so pretty.
mapbox#2182 - Replacing existing iOS style compass with more Android …
mapbox#2182 - Updating compass imagery