Skip to content

Commit 972bd41

Browse files
committed
change mapbox terrain to 512
1 parent 6b912cd commit 972bd41

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

public/codes/3d/terrain/heightening/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ group.addTo(map);
4343
const terrain = {
4444
type: "mapbox",
4545
tileSize: 512,
46-
spatialReference: "preset-vt-3857",
46+
spatialReference: "preset-3857-512",
4747
urlTemplate:
4848
"https://{s}.tiles.mapbox.com/v4/mapbox.terrain-rgb/{z}/{x}/{y}.pngraw?access_token=pk.eyJ1IjoibWFwYm94LWdsLWpzIiwiYSI6ImNram9ybGI1ajExYjQyeGxlemppb2pwYjIifQ.LGy5UGNIsXUZdYMvfYRiAQ",
4949
subdomains: ["a", "b", "c", "d"],

public/codes/3d/terrain/load/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ const layers = [
3838

3939
const terrain = {
4040
type: "mapbox",
41-
tileSize: 256,
41+
tileSize: 512,
42+
patialReference: "preset-3857-512",
4243
urlTemplate: `https://{s}.tiles.mapbox.com/v4/mapbox.terrain-rgb/{z}/{x}/{y}.pngraw?access_token=${token}`,
4344
subdomains: ["a", "b", "c", "d"]
4445
};

public/codes/3d/terrain/stylized/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ const layers = [
4141

4242
const terrain = {
4343
type: "mapbox",
44-
tileSize: 256,
44+
tileSize: 512,
45+
patialReference: "preset-3857-512",
4546
urlTemplate: `https://{s}.tiles.mapbox.com/v4/mapbox.terrain-rgb/{z}/{x}/{y}.pngraw?access_token=${token}`,
4647
subdomains: ["a", "b", "c", "d"],
4748
shader: "lit",

public/codes/3d/terrain/vector/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ const layers = [
3939

4040
const terrain = {
4141
type: "mapbox",
42-
tileSize: 256,
42+
tileSize: 512,
43+
patialReference: "preset-3857-512",
4344
urlTemplate: `https://{s}.tiles.mapbox.com/v4/mapbox.terrain-rgb/{z}/{x}/{y}.pngraw?access_token=${token}`,
4445
subdomains: ["a", "b", "c", "d"]
4546
};

0 commit comments

Comments
 (0)