This commit is contained in:
@@ -204,6 +204,13 @@ static NSURL *MGLStyleURL_emerald;
|
||||
|
||||
- (void)addSource:(MGLSource *)source
|
||||
{
|
||||
if (!source.rawSource) {
|
||||
[NSException raise:NSInvalidArgumentException format:
|
||||
@"The source %@ cannot be added to the style. "
|
||||
@"Make sure the source was created as a member of a concrete subclass of MGLSource.",
|
||||
source];
|
||||
}
|
||||
|
||||
[source addToMapView:self.mapView];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user