[core] Expose "local ideograph font family" in MapSnapshotter.
This commit is contained in:
@@ -20,7 +20,8 @@ public:
|
||||
const float pixelRatio,
|
||||
const optional<CameraOptions> cameraOptions,
|
||||
const optional<LatLngBounds> region,
|
||||
const optional<std::string> programCacheDir);
|
||||
const optional<std::string> programCacheDir,
|
||||
const optional<std::string> localFontFamily = {});
|
||||
|
||||
void setStyleURL(std::string styleURL);
|
||||
std::string getStyleURL() const;
|
||||
@@ -52,9 +53,10 @@ MapSnapshotter::Impl::Impl(FileSource* fileSource,
|
||||
const float pixelRatio,
|
||||
const optional<CameraOptions> cameraOptions,
|
||||
const optional<LatLngBounds> region,
|
||||
const optional<std::string> programCacheDir)
|
||||
const optional<std::string> programCacheDir,
|
||||
const optional<std::string> localFontFamily)
|
||||
: scheduler(std::move(scheduler_))
|
||||
, frontend(size, pixelRatio, *fileSource, *scheduler, programCacheDir)
|
||||
, frontend(size, pixelRatio, *fileSource, *scheduler, programCacheDir, GLContextMode::Unique, localFontFamily)
|
||||
, map(frontend, MapObserver::nullObserver(), size, pixelRatio, *fileSource, *scheduler, MapMode::Static) {
|
||||
|
||||
if (style.first) {
|
||||
@@ -168,8 +170,9 @@ MapSnapshotter::MapSnapshotter(FileSource* fileSource,
|
||||
const float pixelRatio,
|
||||
const optional<CameraOptions> cameraOptions,
|
||||
const optional<LatLngBounds> region,
|
||||
const optional<std::string> programCacheDir)
|
||||
: impl(std::make_unique<util::Thread<MapSnapshotter::Impl>>("Map Snapshotter", fileSource, std::move(scheduler), style, size, pixelRatio, cameraOptions, region, programCacheDir)) {
|
||||
const optional<std::string> programCacheDir,
|
||||
const optional<std::string> localFontFamily)
|
||||
: impl(std::make_unique<util::Thread<MapSnapshotter::Impl>>("Map Snapshotter", fileSource, std::move(scheduler), style, size, pixelRatio, cameraOptions, region, programCacheDir, localFontFamily)) {
|
||||
}
|
||||
|
||||
MapSnapshotter::~MapSnapshotter() = default;
|
||||
|
||||
@@ -32,7 +32,8 @@ public:
|
||||
const float pixelRatio,
|
||||
const optional<CameraOptions> cameraOptions,
|
||||
const optional<LatLngBounds> region,
|
||||
const optional<std::string> cacheDir = {});
|
||||
const optional<std::string> cacheDir = {},
|
||||
const optional<std::string> localFontFamily = {});
|
||||
|
||||
~MapSnapshotter();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user