Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Update styles in Android test app #1264

Closed
ljbade opened this issue Apr 14, 2015 · 9 comments · Fixed by #1571
Closed

Update styles in Android test app #1264

ljbade opened this issue Apr 14, 2015 · 9 comments · Fixed by #1571
Labels
Android Mapbox Maps SDK for Android GL JS parity For feature parity with Mapbox GL JS

Comments

@ljbade
Copy link
Contributor

ljbade commented Apr 14, 2015

Time to update Android to use the same styles as iOS:

  • Light
  • Dark
  • Emerald
  • Mapbox Streets
  • Outdoors

A 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?

@ljbade ljbade added the Android Mapbox Maps SDK for Android label Apr 14, 2015
@ljbade ljbade added this to the Android Beta milestone Apr 14, 2015
@ljbade ljbade added the GL JS parity For feature parity with Mapbox GL JS label Apr 14, 2015
@1ec5
Copy link
Contributor

1ec5 commented Apr 14, 2015

Do any of these styles have switchable classes like the day/night in Outdoors?

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.

@bleege
Copy link
Contributor

bleege commented Apr 14, 2015

Do I remove the other styles? (e.g. bright/pencil)

Yes please.

What order should the styles be in the drop down (and which one is the default) to match iOS?

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.

@incanus
Copy link
Contributor

incanus commented Apr 14, 2015

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.

Do I remove the other styles? (e.g. bright/pencil)

Here are the styles in the iOS demo app:

static NSArray *const kStyleNames = @[
    @"Mapbox Streets",
    @"Emerald",
    @"Light",
    @"Dark",
    @"Bright",
    @"Basic",
    @"Outdoors",
    @"Satellite",
];

mapbox-gl-native/ios/app/MBXViewController.mm#L13-L22

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" ]

sirius-ios/Sirius/Constants.swift#L8

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.

Do any of these styles have switchable classes like the day/night in Outdoors?

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"
    }

mapbox-gl-styles/styles/outdoors-v7.json#L196-L201

You will always see paint in a style, but the presence of paint.<class> indicates class toggles.

@incanus
Copy link
Contributor

incanus commented Apr 14, 2015

Also, if not otherwise clear, both the GL app and Sirius now default to Mapbox Streets instead of Emerald.

@ljbade
Copy link
Contributor Author

ljbade commented Apr 14, 2015

Perfect, thanks for the details @incanus working on this today.

@ljbade
Copy link
Contributor Author

ljbade commented May 16, 2015

I am picking this up again and working on updating the android-styles branch to latest master.

@ljbade
Copy link
Contributor Author

ljbade commented May 16, 2015

@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:

  • Mapbox Streets (default)
  • Emerald
  • Light
  • Dark

@incanus
Copy link
Contributor

incanus commented May 16, 2015 via email

@incanus
Copy link
Contributor

incanus commented May 16, 2015

Ok, this definitely gets me past the style issues, but ends with the same crash as in #1468 (comment).

05-15 17:46:21.229     995-1012/com.mapbox.mapboxgl.testapp A/libc﹕ Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 1012 (apboxgl.testapp)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android GL JS parity For feature parity with Mapbox GL JS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants