core: rename mbgl namespace to mln (#4487)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2026-08-14 23:25:20 +02:00
committed by GitHub
parent 836b862984
commit 550f64be22
1970 changed files with 8931 additions and 8967 deletions

View File

@@ -14,7 +14,7 @@
#include <memory>
@interface MLNCustomDrawableStyleLayer (Internal)
- (instancetype)initWithPendingLayer:(std::unique_ptr<mbgl::style::Layer>)pendingLayer;
- (instancetype)initWithPendingLayer:(std::unique_ptr<mln::style::Layer>)pendingLayer;
@end
class ExampleCustomDrawableStyleLayerHost;
@@ -22,14 +22,14 @@ class ExampleCustomDrawableStyleLayerHost;
@implementation ExampleCustomDrawableStyleLayer
- (instancetype)initWithIdentifier:(NSString *)identifier {
auto layer = std::make_unique<mbgl::style::CustomDrawableLayer>(
auto layer = std::make_unique<mln::style::CustomDrawableLayer>(
identifier.UTF8String, std::make_unique<ExampleCustomDrawableStyleLayerHost>(self));
return self = [super initWithPendingLayer:std::move(layer)];
}
@end
class ExampleCustomDrawableStyleLayerHost : public mbgl::style::CustomDrawableLayerHost {
class ExampleCustomDrawableStyleLayerHost : public mln::style::CustomDrawableLayerHost {
public:
ExampleCustomDrawableStyleLayerHost(ExampleCustomDrawableStyleLayer *styleLayer) {
layerRef = styleLayer;
@@ -47,11 +47,11 @@ public:
// if we have built our drawable(s) already, either update or skip
if (interface.getDrawableCount()) return;
constexpr float extent = mbgl::util::EXTENT;
constexpr float extent = mln::util::EXTENT;
// add classic polylines
{
using namespace mbgl;
using namespace mln;
// set tile
interface.setTileID({11, 327, 792});
@@ -99,7 +99,7 @@ public:
// add wide vector polylines with tile coordinates
{
using namespace mbgl;
using namespace mln;
// set tile
interface.setTileID({11, 327, 792});
@@ -157,7 +157,7 @@ public:
// add fill polygon
{
using namespace mbgl;
using namespace mln;
// set tile
interface.setTileID({11, 327, 790});
@@ -190,7 +190,7 @@ public:
// add symbol
{
using namespace mbgl;
using namespace mln;
// set tile
interface.setTileID({11, 327, 789});
@@ -230,7 +230,7 @@ public:
// add polylines using wide vectors using geographic coordinates
{
using namespace mbgl;
using namespace mln;
// add polyline with geographic coordinates
Interface::LineOptions options = {/*geometry=*/{},
@@ -266,7 +266,7 @@ public:
// add polylines using wide vectors in tile coordinates
{
using namespace mbgl;
using namespace mln;
// set tile
interface.setTileID({11, 327, 790});