-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core][ios][Android] Check layer compatibility with source #15644
Conversation
@pozdnyakov I rebased a local copy of your branch, branched and pushed: https://github.com/mapbox/mapbox-gl-native/tree/jrex/check-source-compatibility These are speculative fixes for the 3 failing iOS tests: 06ee040 addresses:
ed7321e addresses:
This last one was because it was creating a @frederoni Can you take a look at the C++/Obj-C nature of ed7321e - I'm not super keen that it's passing C++ objects BUT this is an internal method (and not exposed publicly), so I think we should be ok here. |
62561a3
to
102dd4a
Compare
@julianrex Thank you! I've reset this PR to your branch! |
@@ -33,15 +33,16 @@ - (instancetype)initWithIdentifier:(NSString *)identifier configurationURL:(NSUR | |||
} | |||
|
|||
- (instancetype)initWithIdentifier:(NSString *)identifier configurationURL:(NSURL *)configurationURL tileSize:(CGFloat)tileSize { | |||
auto source = [self pendingSourceWithIdentifier:identifier configurationURL:configurationURL tileSize:tileSize]; | |||
NSString *configurationURLString = configurationURL.mgl_URLByStandardizingScheme.absoluteString; | |||
auto source = [self pendingSourceWithIdentifier:identifier urlOrTileset:configurationURLString.UTF8String tileSize:tileSize]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should tileSize be rounded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot. That was there before, I'll re-add.
Working on an alternate approach atm |
- testRemovingLayerBeforeAddingSameLayer - testRemovingSourceInUse
…testMGLHillshadeStyleLayer()
102dd4a
to
cec8599
Compare
I share your concerns since Obj-C has a concrete type for url but it's clear by the type of the arg. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Fixes #15636