ios: fix build issues Xcode 26 (#4216)
This commit is contained in:
@@ -40,6 +40,8 @@
|
||||
|
||||
#import "NSBundle+MLNAdditions.h"
|
||||
|
||||
#include <optional>
|
||||
|
||||
const CGPoint MLNLogoImagePosition = CGPointMake(8, 8);
|
||||
const CGFloat MLNSnapshotterMinimumPixelSize = 64;
|
||||
NSString *const MLNSnapshotterAnnotationSpritePrefix = @"org.maplibre.sprites.";
|
||||
@@ -892,8 +894,9 @@ NSArray<MLNAttributionInfo *> *MLNAttributionInfosFromAttributions(
|
||||
}
|
||||
|
||||
// Create the snapshotter
|
||||
auto localFontFamilyName =
|
||||
config.localFontFamilyName ? std::string(config.localFontFamilyName.UTF8String) : nullptr;
|
||||
std::optional<std::string> localFontFamilyName =
|
||||
config.localFontFamilyName ? std::optional(std::string(config.localFontFamilyName.UTF8String))
|
||||
: std::nullopt;
|
||||
_delegateHost = std::make_unique<MLNMapSnapshotterDelegateHost>(self);
|
||||
_mbglMapSnapshotter = std::make_unique<mbgl::MapSnapshotter>(
|
||||
size, pixelRatio, resourceOptions, clientOptions, *_delegateHost, localFontFamilyName);
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
|
||||
#import <sys/socket.h>
|
||||
#import <netinet/in.h>
|
||||
#import <netinet6/in6.h>
|
||||
#import <arpa/inet.h>
|
||||
#import <ifaddrs.h>
|
||||
#import <netdb.h>
|
||||
|
||||
Reference in New Issue
Block a user