core: rename mbgl directories to mln (#4511)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -32,9 +32,9 @@ add_library(mbgl-node-loop STATIC)
|
||||
target_sources(
|
||||
mbgl-node-loop
|
||||
PRIVATE
|
||||
${PROJECT_SOURCE_DIR}/platform/default/src/mbgl/util/async_task.cpp
|
||||
${PROJECT_SOURCE_DIR}/platform/default/src/mbgl/util/run_loop.cpp
|
||||
${PROJECT_SOURCE_DIR}/platform/default/src/mbgl/util/timer.cpp
|
||||
${PROJECT_SOURCE_DIR}/platform/default/src/mln/util/async_task.cpp
|
||||
${PROJECT_SOURCE_DIR}/platform/default/src/mln/util/run_loop.cpp
|
||||
${PROJECT_SOURCE_DIR}/platform/default/src/mln/util/timer.cpp
|
||||
)
|
||||
|
||||
target_include_directories(
|
||||
|
||||
@@ -136,7 +136,7 @@ If you omit the `request` method, the `map` object will use the default internal
|
||||
}
|
||||
```
|
||||
|
||||
The `kind` is an enum and defined in [`mbgl.Resource`](https://github.com/maplibre/maplibre-native/blob/main/include/mbgl/storage/resource.hpp):
|
||||
The `kind` is an enum and defined in [`mbgl.Resource`](https://github.com/maplibre/maplibre-native/blob/main/include/mln/storage/resource.hpp):
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -227,7 +227,7 @@ Stylesheets are free to use any protocols, but your implementation of `request`
|
||||
|
||||
## Listening for log events
|
||||
|
||||
The module imported with `require('maplibre-gl-native')` inherits from [`EventEmitter`](https://nodejs.org/api/events.html), and the `NodeLogObserver` will push log events to this. Log messages can have [`class`](https://github.com/maplibre/maplibre-native/blob/0dea8bad2ff68a95772a6e3b3a788946c0596f15/src/mbgl/util/event.cpp#L15-L35), [`severity`](https://github.com/maplibre/maplibre-native/blob/0dea8bad2ff68a95772a6e3b3a788946c0596f15/src/mbgl/util/event.cpp#L6-L13), `code` ([HTTP status codes](https://www.rfc-editor.org/rfc/rfc9110#name-status-codes)), and `text` parameters.
|
||||
The module imported with `require('maplibre-gl-native')` inherits from [`EventEmitter`](https://nodejs.org/api/events.html), and the `NodeLogObserver` will push log events to this. Log messages can have [`class`](https://github.com/maplibre/maplibre-native/blob/0dea8bad2ff68a95772a6e3b3a788946c0596f15/src/mln/util/event.cpp#L15-L35), [`severity`](https://github.com/maplibre/maplibre-native/blob/0dea8bad2ff68a95772a6e3b3a788946c0596f15/src/mln/util/event.cpp#L6-L13), `code` ([HTTP status codes](https://www.rfc-editor.org/rfc/rfc9110#name-status-codes)), and `text` parameters.
|
||||
|
||||
```js
|
||||
var mbgl = require('@maplibre/maplibre-gl-native');
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
#include <nan.h>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#include <mbgl/util/feature.hpp>
|
||||
#include <mbgl/style/conversion/geojson.hpp>
|
||||
#include <mbgl/style/conversion_impl.hpp>
|
||||
#include <mln/util/feature.hpp>
|
||||
#include <mln/style/conversion/geojson.hpp>
|
||||
#include <mln/style/conversion_impl.hpp>
|
||||
|
||||
namespace mln {
|
||||
namespace style {
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
#include "node_expression.hpp"
|
||||
#include "node_feature.hpp"
|
||||
|
||||
#include <mbgl/style/expression/parsing_context.hpp>
|
||||
#include <mbgl/style/expression/is_constant.hpp>
|
||||
#include <mbgl/style/conversion/function.hpp>
|
||||
#include <mbgl/style/conversion/geojson.hpp>
|
||||
#include <mbgl/util/geojson.hpp>
|
||||
#include <mln/style/expression/parsing_context.hpp>
|
||||
#include <mln/style/expression/is_constant.hpp>
|
||||
#include <mln/style/conversion/function.hpp>
|
||||
#include <mln/style/conversion/geojson.hpp>
|
||||
#include <mln/util/geojson.hpp>
|
||||
#include <nan.h>
|
||||
|
||||
using namespace mln::style;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/style/conversion_impl.hpp>
|
||||
#include <mbgl/style/expression/expression.hpp>
|
||||
#include <mln/style/conversion_impl.hpp>
|
||||
#include <mln/style/expression/expression.hpp>
|
||||
#include <exception>
|
||||
#include <memory>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/util/feature.hpp>
|
||||
#include <mln/util/feature.hpp>
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "node_logging.hpp"
|
||||
|
||||
#include <mbgl/util/enum.hpp>
|
||||
#include <mln/util/enum.hpp>
|
||||
|
||||
namespace node_mbgl {
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "util/async_queue.hpp"
|
||||
|
||||
#include <mbgl/util/logging.hpp>
|
||||
#include <mln/util/logging.hpp>
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
@@ -3,35 +3,35 @@
|
||||
#include "node_feature.hpp"
|
||||
#include "node_conversion.hpp"
|
||||
|
||||
#include <mbgl/renderer/renderer.hpp>
|
||||
#include <mbgl/gfx/headless_frontend.hpp>
|
||||
#include <mbgl/style/conversion/source.hpp>
|
||||
#include <mbgl/style/conversion/layer.hpp>
|
||||
#include <mbgl/style/conversion/filter.hpp>
|
||||
#include <mbgl/style/conversion/light.hpp>
|
||||
#include <mln/renderer/renderer.hpp>
|
||||
#include <mln/gfx/headless_frontend.hpp>
|
||||
#include <mln/style/conversion/source.hpp>
|
||||
#include <mln/style/conversion/layer.hpp>
|
||||
#include <mln/style/conversion/filter.hpp>
|
||||
#include <mln/style/conversion/light.hpp>
|
||||
|
||||
#include <mbgl/style/layers/background_layer.hpp>
|
||||
#include <mbgl/style/layers/circle_layer.hpp>
|
||||
#include <mbgl/style/layers/fill_layer.hpp>
|
||||
#include <mbgl/style/layers/fill_extrusion_layer.hpp>
|
||||
#include <mbgl/style/layers/heatmap_layer.hpp>
|
||||
#include <mbgl/style/layers/hillshade_layer.hpp>
|
||||
#include <mbgl/style/layers/color_relief_layer.hpp>
|
||||
#include <mbgl/style/layers/line_layer.hpp>
|
||||
#include <mbgl/style/layers/raster_layer.hpp>
|
||||
#include <mbgl/style/layers/symbol_layer.hpp>
|
||||
#include <mln/style/layers/background_layer.hpp>
|
||||
#include <mln/style/layers/circle_layer.hpp>
|
||||
#include <mln/style/layers/fill_layer.hpp>
|
||||
#include <mln/style/layers/fill_extrusion_layer.hpp>
|
||||
#include <mln/style/layers/heatmap_layer.hpp>
|
||||
#include <mln/style/layers/hillshade_layer.hpp>
|
||||
#include <mln/style/layers/color_relief_layer.hpp>
|
||||
#include <mln/style/layers/line_layer.hpp>
|
||||
#include <mln/style/layers/raster_layer.hpp>
|
||||
#include <mln/style/layers/symbol_layer.hpp>
|
||||
|
||||
#include <mbgl/map/map.hpp>
|
||||
#include <mbgl/map/map_observer.hpp>
|
||||
#include <mbgl/storage/file_source_manager.hpp>
|
||||
#include <mbgl/storage/resource_options.hpp>
|
||||
#include <mbgl/style/image.hpp>
|
||||
#include <mbgl/style/light.hpp>
|
||||
#include <mbgl/style/style.hpp>
|
||||
#include <mbgl/util/async_request.hpp>
|
||||
#include <mbgl/util/exception.hpp>
|
||||
#include <mbgl/util/logging.hpp>
|
||||
#include <mbgl/util/premultiply.hpp>
|
||||
#include <mln/map/map.hpp>
|
||||
#include <mln/map/map_observer.hpp>
|
||||
#include <mln/storage/file_source_manager.hpp>
|
||||
#include <mln/storage/resource_options.hpp>
|
||||
#include <mln/style/image.hpp>
|
||||
#include <mln/style/light.hpp>
|
||||
#include <mln/style/style.hpp>
|
||||
#include <mln/util/async_request.hpp>
|
||||
#include <mln/util/exception.hpp>
|
||||
#include <mln/util/logging.hpp>
|
||||
#include <mln/util/premultiply.hpp>
|
||||
|
||||
namespace node_mbgl {
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/map/map.hpp>
|
||||
#include <mbgl/storage/file_source.hpp>
|
||||
#include <mbgl/storage/resource_options.hpp>
|
||||
#include <mbgl/util/async_request.hpp>
|
||||
#include <mbgl/util/client_options.hpp>
|
||||
#include <mbgl/util/image.hpp>
|
||||
#include <mln/map/map.hpp>
|
||||
#include <mln/storage/file_source.hpp>
|
||||
#include <mln/storage/resource_options.hpp>
|
||||
#include <mln/util/async_request.hpp>
|
||||
#include <mln/util/client_options.hpp>
|
||||
#include <mln/util/image.hpp>
|
||||
|
||||
#include <exception>
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
#include <nan.h>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#include <mbgl/util/run_loop.hpp>
|
||||
#include <mbgl/gfx/backend.hpp>
|
||||
#include <mbgl/gfx/backend_scope.hpp>
|
||||
#include <mln/util/run_loop.hpp>
|
||||
#include <mln/gfx/backend.hpp>
|
||||
#include <mln/gfx/backend_scope.hpp>
|
||||
|
||||
#include "node_map.hpp"
|
||||
#include "node_logging.hpp"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "node_request.hpp"
|
||||
#include "node_map.hpp"
|
||||
#include <mbgl/storage/response.hpp>
|
||||
#include <mbgl/util/chrono.hpp>
|
||||
#include <mln/storage/response.hpp>
|
||||
#include <mln/util/chrono.hpp>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
#include <nan.h>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#include <mbgl/storage/file_source.hpp>
|
||||
#include <mbgl/storage/resource.hpp>
|
||||
#include <mbgl/util/async_request.hpp>
|
||||
#include <mln/storage/file_source.hpp>
|
||||
#include <mln/storage/resource.hpp>
|
||||
#include <mln/util/async_request.hpp>
|
||||
|
||||
namespace node_mbgl {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user