• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mapbox / mapbox-gl-native / 15590
77%

Build:
DEFAULT BRANCH: master
Ran 08 Sep 2016 05:07PM UTC
Jobs 1
Files 380
Run time 33s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
15590

push

travis-ci

boundsj
[ios, macos] Put MGLStyleLayer inits in respective classes

Previously, we declared MGLStyleLayer initializers in the MGLStyleLayer
protocol as optional methods. This made it easy to opt in and out
of initializers that did or or did not make sense for the subclass.
However, this approach was dangerous since it was easy for an
application developer to initialize an MGLStyleLayer subclass with an
init method that was actually not implemented in that class causing
an exception at runtime.

This commit moves the init methods that each subclass supports to
each subclass so xcode (and the compiler) help the developer avoid
the previously possible runtime exception.

In addition, a new init method is added that takes the source layer
and passes that on to `mbgl::style:Layer` (but only on classes
where this is possible in core). This allows an application developer
to style a specific source layer (i.e. the contour lines of the mapbox
terrain vector source).

Finally, this refactors MGLStyleLayer classes to use an MGLSource instead of a
string identifier for the source when initializing the style.

9740 of 12920 relevant lines covered (75.39%)

15440.19 hits per line

Jobs
ID Job ID Ran Files Coverage
2 15590.2 (BUILDTYPE=Debug _CXX=g++-5 _CC=gcc-5 WITH_COVERAGE=1) 08 Sep 2016 05:07PM UTC 0
75.39
Travis Job 15590.2
Source Files on build 15590
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #15590
  • 4c8d61ab on github
  • Prev Build on master (#15584)
  • Next Build on master (#15591)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc