Skip to content

Commit

Permalink
fix: pass options for pmtiles
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Jan 20, 2025
1 parent 7d4c9df commit 25b1e65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/MLRN/MLRNVectorSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ - (nullable MLNSource*)makeSource
{
if (self.url != nil) {
if([self.url hasPrefix:@"pmtiles://"]) {
return [[MLNVectorTileSource alloc] initWithIdentifier:self.id tileURLTemplates:@[self.url] options:nil];
return [[MLNVectorTileSource alloc] initWithIdentifier:self.id tileURLTemplates:@[self.url] options:[self getOptions]];
} else {
return [[MLNVectorTileSource alloc] initWithIdentifier:self.id configurationURL:[NSURL URLWithString:self.url]];
}
}

return [[MLNVectorTileSource alloc] initWithIdentifier:self.id tileURLTemplates:self.tileUrlTemplates options:[self getOptions]];
}

Expand Down

0 comments on commit 25b1e65

Please sign in to comment.