MCPcopy Create free account
hub / github.com/comaps/comaps / LoadMapsSync

Method LoadMapsSync

libs/map/framework.cpp:521–535  ·  view source on GitHub ↗

Small copy-paste with LoadMapsAsync, but I don't have a better solution.

Source from the content-addressed store, hash-verified

519
520// Small copy-paste with LoadMapsAsync, but I don't have a better solution.
521void Framework::LoadMapsSync()
522{
523 RegisterAllMaps();
524 LOG(LDEBUG, ("Maps initialized"));
525
526 GetSearchAPI().InitAfterWorldLoaded();
527 LOG(LDEBUG, ("Search API initialized, part 2, after World was loaded"));
528
529 osm::Editor & editor = osm::Editor::Instance();
530 editor.LoadEdits();
531 m_featuresFetcher.GetDataSource().AddObserver(editor);
532 LOG(LDEBUG, ("Editor initialized"));
533
534 GetStorage().RestoreDownloadQueue();
535}
536
537// Small copy-paste with LoadMapsSync, but I don't have a better solution.
538void Framework::LoadMapsAsync(std::function<void()> && callback)

Callers

nothing calls this directly

Calls 5

InitAfterWorldLoadedMethod · 0.80
LoadEditsMethod · 0.80
AddObserverMethod · 0.80
GetDataSourceMethod · 0.80
RestoreDownloadQueueMethod · 0.80

Tested by

no test coverage detected