Newer
Older
KaiFengPC / src / utils / gisCesium / mapStyle.json
@zhangdeliang zhangdeliang on 20 May 6 KB 项目初始化
{
    "style": {
        "background": {
            "id": "background",
            "paint": {
                "background-color": "rgba(1,22,60,1)"
            }
        },
        "road-street": {
            "id": "road-street",
            "paint": {
                "line-width": {
                    "base": 1.5,
                    "stops": [
                        [
                            12.5,
                            0.5
                        ],
                        [
                            14,
                            2
                        ],
                        [
                            18,
                            18
                        ]
                    ]
                },
                "line-opacity": {
                    "base": 1,
                    "stops": [
                        [
                            13.99,
                            0
                        ],
                        [
                            14,
                            1
                        ]
                    ]
                },
                "line-color": "rgba(10,48,136,1)"
            }
        },
        "road-secondary-tertiary": {
            "id": "road-secondary-tertiary",
            "paint": {
                "line-width": {
                    "base": 1.5,
                    "stops": [
                        [
                            8.5,
                            1
                        ],
                        [
                            10,
                            2
                        ],
                        [
                            16,
                            20
                        ],
                        [
                            17,
                            25
                        ],
                        [
                            18,
                            37
                        ]
                    ]
                },
                "line-opacity": {
                    "base": 1.2,
                    "stops": [
                        [
                            5,
                            0
                        ],
                        [
                            5.5,
                            1
                        ]
                    ]
                },
                "line-color": "rgba(10,48,136,1)"
            }
        },
        "park": {
            "id": "park",
            "paint": {
                "fill-color": "rgba(0,108,106,1)"
            }
        },
        "water": {
            "id": "water",
            "paint": {
                "fill-color": "rgba(0,67,84,1)"
            }
        },
        "road-trunk": {
            "id": "road-trunk",
            "paint": {
                "line-width": {
                    "base": 1.5,
                    "stops": [
                        [
                            5,
                            0.75
                        ],
                        [
                            18,
                            32
                        ]
                    ]
                },
                "line-color": "rgba(94,109,33,1)"
            }
        },
        "road-primary": {
            "id": "road-primary",
            "paint":{
                "line-color": "hsl(205, 7%, 17%)",
                "line-opacity": 1,
                "line-color": "rgba(0,92,133,1)"
            }
        },
        "school": {
            "id": "school",
            "paint": {
                "fill-color": "rgba(39,92,52,1)"
            }
        },
        "cemetery": {
            "id": "cemetery",
            "paint": {
                "fill-color": "rgba(46,55,48,1)"
            }
        },
        "bridge-primary-case":     {
            "id": "bridge-primary-case",
            "paint": {
                "line-width": {
                    "base": 1.5,
                    "stops": [
                        [
                            10,
                            1
                        ],
                        [
                            16,
                            2
                        ]
                    ]
                },
                "line-color": "rgba(0,53,91,1)",
                "line-gap-width": {
                    "base": 1.5,
                    "stops": [
                        [
                            5,
                            0.75
                        ],
                        [
                            18,
                            32
                        ]
                    ]
                },
                "line-translate": [
                    0,
                    0
                ]
            }
        },
        "bridge-primary":    {
            "id": "bridge-primary",
            "paint": {
                "line-width": {
                    "base": 1.5,
                    "stops": [
                        [
                            5,
                            0.75
                        ],
                        [
                            18,
                            32
                        ]
                    ]
                },
                "line-color": "rgba(0,53,91,1)",
                "line-opacity": 1
            }
        },
        "road-shields-black": {
            "id":"road-shields-black",
            "layout": {},
            "paint": {
                "text-color": "hsl(0, 0%, 7%)",
                "icon-halo-color": "rgba(0, 0, 0, 1)",
                "icon-halo-width": 1,
                "text-opacity": 0,
                "icon-color": "white"
            }
        },
        "landcover_crop":     {
            "id": "landcover_crop",
            "paint": {
                "fill-opacity": {
                    "base": 1.5,
                    "stops": [
                        [
                            2,
                            0
                        ],
                        [
                            7,
                            0
                        ]
                    ]
                },
                "fill-color": "hsl(180, 18%, 10%)"
            }
        }
    }
}