[core] Add interface to change the orientation through MapOptions

This commit is contained in:
Sudarsana Babu Nagineni
2019-03-25 23:39:31 +02:00
parent e639087c91
commit 11afef7825
7 changed files with 33 additions and 11 deletions

View File

@@ -24,6 +24,7 @@ Map::Impl::Impl(RendererFrontend& frontend_,
fileSource(std::move(fileSource_)),
style(std::make_unique<style::Style>(scheduler, *fileSource, pixelRatio)),
annotationManager(*style) {
transform.setNorthOrientation(mapOptions.northOrientation());
style->impl->setObserver(this);
rendererFrontend.setObserver(*this);
transform.resize(size_);