update Mapbox GL JS, closes #129

This commit is contained in:
vcoppe committed 2024-12-24 16:50:52 +01:00
1 parent b841326e19
commit 7d2c030ebd
3 files changed
+15 -23

No files matched your search

-14
View File
@@ -50,20 +50,6 @@
language = 'en';
}
const loadJson = mapboxgl.Style.prototype._load;
mapboxgl.Style.prototype._load = function (json, validate) {
if (
json['sources'] &&
json['sources']['mapbox-satellite'] &&
json['sources']['mapbox-satellite']['data'] &&
json['sources']['mapbox-satellite']['data']['data']
) {
// Temporary fix for https://github.com/gpxstudio/gpx.studio/issues/129
delete json['sources']['mapbox-satellite']['data']['data'];
}
loadJson.call(this, json, validate);
};
let newMap = new mapboxgl.Map({
container: 'map',
style: {