Switching from mapbox-gl-js to maplibre-gl-js

This commit is contained in:
Petr Pokorny
2021-01-21 22:29:09 +01:00
parent 1e09e00f75
commit e4b2fff513
35 changed files with 70 additions and 42 deletions

View File

@@ -7,7 +7,7 @@ const outputPath = 'src/mbgl/programs';
const zlib = require('zlib');
const crypto = require('crypto');
var shaders = require('../mapbox-gl-js/src/shaders');
var shaders = require('../maplibre-gl-js/src/shaders');
require('./style-code');

View File

@@ -2,12 +2,12 @@
const nitpick = require('.');
const child_process = require('child_process');
// Make sure that the mapbox-gl-js submodule pin is up to date
const head = child_process.execSync('git -C mapbox-gl-js rev-parse HEAD').toString().trim();
const revs = child_process.execSync(`git -C mapbox-gl-js branch -a --contains ${head}`).toString().split('\n');
// Make sure that the maplibre-gl-js submodule pin is up to date
const head = child_process.execSync('git -C maplibre-gl-js rev-parse HEAD').toString().trim();
const revs = child_process.execSync(`git -C maplibre-gl-js branch -a --contains ${head}`).toString().split('\n');
if (revs.indexOf(' remotes/origin/master') >= 0) {
nitpick.ok(`mapbox-gl-js submodule pin is merged to master`);
nitpick.ok(`maplibre-gl-js submodule pin is merged to master`);
} else {
nitpick.fail(`mapbox-gl-js submodule is pinned to ${head}, which isn't merged to master`);
nitpick.fail(`maplibre-gl-js submodule is pinned to ${head}, which isn't merged to master`);
}

View File

@@ -1,4 +1,4 @@
const referenceSpec = require('../mapbox-gl-js/src/style-spec/reference/v8');
const referenceSpec = require('../maplibre-gl-js/src/style-spec/reference/v8');
referenceSpec.layer.type.values["location-indicator"] = {};
referenceSpec["layout_location-indicator"] = {