[general] moving ios and android project under ./platform folder

This commit is contained in:
Petr Pokorny
2020-12-20 12:38:56 +01:00
parent 8e759a51e4
commit 41f0be34e7
9877 changed files with 141 additions and 2889 deletions

View File

@@ -0,0 +1,25 @@
#include <mbgl/layermanager/location_indicator_layer_factory.hpp>
#include <mbgl/renderer/layers/render_location_indicator_layer.hpp>
#include <mbgl/style/layers/location_indicator_layer.hpp>
#include <mbgl/style/layers/location_indicator_layer_impl.hpp>
namespace mbgl {
const style::LayerTypeInfo* LocationIndicatorLayerFactory::getTypeInfo() const noexcept {
return style::LocationIndicatorLayer::Impl::staticTypeInfo();
}
std::unique_ptr<style::Layer> LocationIndicatorLayerFactory::createLayer(
const std::string& id, const style::conversion::Convertible&) noexcept {
return std::unique_ptr<style::Layer>(new style::LocationIndicatorLayer(id));
}
std::unique_ptr<RenderLayer> LocationIndicatorLayerFactory::createRenderLayer(
Immutable<style::Layer::Impl> impl) noexcept {
assert(impl->getTypeInfo() == getTypeInfo());
return std::make_unique<RenderLocationIndicatorLayer>(
staticImmutableCast<style::LocationIndicatorLayer::Impl>(impl));
}
} // namespace mbgl