Switching from mapbox-gl-js to maplibre-gl-js
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
@@ -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`);
|
||||
}
|
||||
|
||||
@@ -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"] = {
|
||||
|
||||
Reference in New Issue
Block a user