-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update styles in Android test app #1264
Comments
We’ve formalized a styleClasses API on iOS, but if any of the bundled styles have toggleable classes, their designers have kept it a secret. 😃 Note that the Satellite style does have classes for labes/roads and contours, which are akin to the “hybrid” style offered by Google and Apple. We aren’t shipping with Satellite just yet but will once #963 is unblocked. |
Yes please.
iOS is using Emerald as it's default style. Streets will probably be the second one. After that the order shouldn't matter too much. |
Clarification here: we are only pushing on four styles — not Outdoors. IIRC @samanpwbb said that it would need some special attention and isn't part of the current push. For context, Outdoors was our June '14 launch style.
Here are the styles in the iOS demo app: static NSArray *const kStyleNames = @[
@"Mapbox Streets",
@"Emerald",
@"Light",
@"Dark",
@"Bright",
@"Basic",
@"Outdoors",
@"Satellite",
];
This is an ordered array of appearance in the app. And here are the styles shown in Sirius: let SiriusShownStyles = [ "emerald-v7", "light-v7", "dark-v7", "mapbox-streets-v7" ]
This is an array used to filter the shown styles from the default GL list. In short, show all of the styles that don't break GL in the demo app (e.g. get rid of Pencil) and just show the four we're sprinting on / will launch with in Sirius.
The new ones don't to my knowledge, but Outdoors for example does. Here's how to tell: "paint": {
"background-color": "@land"
},
"paint.night": {
"background-color": "@land_night"
}
You will always see |
Also, if not otherwise clear, both the GL app and Sirius now default to Mapbox Streets instead of Emerald. |
Perfect, thanks for the details @incanus working on this today. |
I am picking this up again and working on updating the |
@bleege @incanus @BergWerkGIS @mb12 Can you guys give https://github.com/mapbox/mapbox-gl-native/compare/android-styles a test to see if it fixes the style loading issues in #1468 ? @bleege @incanus Can you also let me know if you are happy with the new list of styles:
|
List looks great; will test branch.
|
Ok, this definitely gets me past the style issues, but ends with the same crash as in #1468 (comment).
|
Time to update Android to use the same styles as iOS:
OutdoorsA few questions @bleege and @incanus:
Do I remove the other styles? (e.g. bright/pencil)
What order should the styles be in the drop down (and which one is the default) to match iOS?
Do any of these styles have switchable classes like the day/night in Outdoors?
The text was updated successfully, but these errors were encountered: