new name system?
This commit is contained in:
parent
eb5c4a93a9
commit
db8265384c
5 changed files with 525 additions and 232 deletions
22
renderer.js
22
renderer.js
|
|
@ -90,20 +90,20 @@ function discreteColor(map, x, y, mode) {
|
|||
let color;
|
||||
|
||||
if (map.sea[i]) {
|
||||
// Google Map風の海色
|
||||
// Google Map like styled
|
||||
color = [170, 218, 255];
|
||||
} else if (mode === "landuse") {
|
||||
const colors = {
|
||||
0: [230, 242, 220], // 農地
|
||||
1: [235, 245, 225], // 平地
|
||||
2: [235, 230, 220], // 旧市街
|
||||
3: [224, 202, 190], // 中心市街地 / CBD
|
||||
4: [245, 240, 230], // 郊外
|
||||
5: [220, 220, 225], // 工業地域
|
||||
6: [225, 235, 225], // 物流エリア
|
||||
7: [238, 242, 248], // ニュータウン
|
||||
8: [248, 242, 230], // 沿道開発
|
||||
9: [225, 238, 220], // その他
|
||||
0: [230, 242, 220], // farmland
|
||||
1: [235, 245, 225], // plain
|
||||
2: [235, 230, 220], // old city
|
||||
3: [224, 202, 190], // CBD
|
||||
4: [245, 240, 230], // suburb
|
||||
5: [220, 220, 225], // industrial area
|
||||
6: [225, 235, 225], // logistics area
|
||||
7: [238, 242, 248], // new town
|
||||
8: [248, 242, 230], // coastal development
|
||||
9: [225, 238, 220], // others
|
||||
};
|
||||
color = colors[map.landuse[i]] || colors[0];
|
||||
} else if (mode === "admin") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue