UNPKG

gisthreemap

Version:

基于webGL的三维api

1,650 lines (1,649 loc) 169 kB
export default { "version": 8, "name": "Monochrome", "metadata": { "mapbox:type": "default", "mapbox:origin": "monochrome-dark-v1", "mapbox:sdk-support": { "android": "10.6.0", "ios": "10.6.0", "js": "2.9.0" }, "mapbox:autocomposite": true, "mapbox:groups": { "Transit, transit-labels": { "name": "Transit, transit-labels", "collapsed": true }, "Administrative boundaries, admin": { "name": "Administrative boundaries, admin", "collapsed": true }, "Land & water, built": { "name": "Land & water, built", "collapsed": true }, "Transit, bridges": { "name": "Transit, bridges", "collapsed": true }, "Transit, surface": { "name": "Transit, surface", "collapsed": true }, "Land & water, land": { "name": "Land & water, land", "collapsed": true }, "Road network, bridges": { "name": "Road network, bridges", "collapsed": true }, "Road network, tunnels": { "name": "Road network, tunnels", "collapsed": true }, "Road network, road-labels": { "name": "Road network, road-labels", "collapsed": true }, "Buildings, built": { "name": "Buildings, built", "collapsed": true }, "Natural features, natural-labels": { "name": "Natural features, natural-labels", "collapsed": true }, "Road network, surface": { "name": "Road network, surface", "collapsed": true }, "Walking, cycling, etc., barriers-bridges": { "name": "Walking, cycling, etc., barriers-bridges", "collapsed": true }, "Place labels, place-labels": { "name": "Place labels, place-labels", "collapsed": true }, "Point of interest labels, poi-labels": { "name": "Point of interest labels, poi-labels", "collapsed": true }, "Walking, cycling, etc., tunnels": { "name": "Walking, cycling, etc., tunnels", "collapsed": true }, "Walking, cycling, etc., surface": { "name": "Walking, cycling, etc., surface", "collapsed": true }, "Transit, built": { "name": "Transit, built", "collapsed": true }, "Land & water, water": { "name": "Land & water, water", "collapsed": true } }, "mapbox:uiParadigm": "components", "mapbox:decompiler": { "id": "cl9w2ebf9000714plkc8ysrvm", "componentVersion": "15.0.0", "strata": [ { "id": "monochrome-dark-v1", "order": [ [ "land-and-water", "land" ], [ "land-and-water", "water" ], [ "land-and-water", "built" ], [ "transit", "built" ], [ "buildings", "built" ], [ "road-network", "tunnels-case" ], [ "walking-cycling", "tunnels" ], [ "road-network", "tunnels" ], [ "transit", "ferries" ], [ "walking-cycling", "surface" ], [ "road-network", "surface" ], [ "transit", "surface" ], [ "road-network", "surface-icons" ], [ "walking-cycling", "barriers-bridges" ], [ "road-network", "bridges" ], [ "transit", "bridges" ], [ "buildings", "extruded" ], [ "transit", "elevated" ], [ "admin-boundaries", "admin" ], [ "buildings", "building-labels" ], [ "road-network", "road-labels" ], [ "walking-cycling", "walking-cycling-labels" ], [ "transit", "ferry-aerialway-labels" ], [ "natural-features", "natural-labels" ], [ "point-of-interest-labels", "poi-labels" ], [ "transit", "transit-labels" ], [ "place-labels", "place-labels" ] ] } ], "components": { "road-network": "15.0.0", "natural-features": "15.0.0", "place-labels": "15.0.0", "admin-boundaries": "15.0.0", "point-of-interest-labels": "15.0.0", "walking-cycling": "15.0.0", "transit": "15.0.0", "land-and-water": "15.0.0", "buildings": "15.0.0" }, "propConfig": { "road-network": { "colorBase": "hsl(193, 95%, 90%)", "roadNetwork": "Simple", "roadWidth": 0.6, "language": "Simplified Chinese" }, "natural-features": { "colorBase": "hsl(193, 95%, 90%)", "labelStyle": "Text only", "density": 1, "language": "Simplified Chinese", "worldview": "CN" }, "place-labels": { "colorBase": "hsl(193, 95%, 90%)", "settlementLabelStyle": "Text only", "settlementsDensity": 2, "settlementSubdivisionsDensity": 3, "language": "Simplified Chinese", "worldview": "CN" }, "admin-boundaries": { "colorBase": "hsl(193, 95%, 90%)", "admin0Width": 1.3, "worldview": "CN" }, "point-of-interest-labels": { "colorBase": "hsl(193, 95%, 90%)", "labelStyle": "Text and icon", "density": 1, "poiEtcFont": [ "DIN Pro Italic", "Arial Unicode MS Regular" ], "language": "Simplified Chinese", "controlDensityByClass": false }, "walking-cycling": { "walkingPathDashPattern": "Solid", "controlDashStyle": true, "golfHoleLabelLine": false, "walkingCyclingPisteBackground": false, "colorBase": "hsl(193, 95%, 90%)", "trailDashPattern": "Solid", "language": "Simplified Chinese", "pedestrianPolygonFeatures": false, "cyclewayPisteDashPattern": "Solid", "labels": false }, "transit": { "aerialways": false, "iconColorScheme": "Monochrome", "transitLabels": false, "colorBase": "hsl(193, 95%, 90%)", "railwayStyle": false, "worldview": "CN", "ferries": false, "language": "Simplified Chinese", "labelStyle": "Text only" }, "land-and-water": { "colorBase": "hsl(193, 95%, 90%)", "landType": "Landuse only", "transitionLandOnZoom": true, "waterStyle": "Simple", "landuseDensity": 8 }, "buildings": { "colorBase": "hsl(193, 95%, 90%)", "houseNumbers": false } } } }, "center": [ -74.09082857552085, 40.56132022050551 ], "zoom": 10.245563566183531, "bearing": 0, "pitch": 0, "fog": { "range": [ -1, 10 ], "color": "hsl(0, 0%, 100%)", "high-color": "hsl(0, 0%, 100%)", "space-color": "hsl(0, 0%, 100%)", "horizon-blend": 0.1, "star-intensity": 0 }, "sources": { "composite": { "url": "mapbox://mapbox.mapbox-streets-v8", "type": "vector" } }, "sprite": "mapbox://sprites/criska/cl9w2ebf9000714plkc8ysrvm/41zp0l42ipg8t2o9w62ntdfis", "glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf", "projection": { "name": "globe" }, "layers": [ { "id": "land", "type": "background", "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, land" }, "layout": {}, "paint": { "background-color": [ "interpolate", [ "linear" ], [ "zoom" ], 9, "hsl(193, 95%, 90%)", 11, "hsl(193, 94%, 83%)" ] } }, { "id": "national-park", "type": "fill", "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, land" }, "source": "composite", "source-layer": "landuse_overlay", "minzoom": 5, "filter": [ "==", [ "get", "class" ], "national_park" ], "layout": {}, "paint": { "fill-color": "hsl(193, 95%, 79%)", "fill-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 5, 0, 6, 0.6, 12, 0.2 ] } }, { "id": "landuse", "type": "fill", "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, land" }, "source": "composite", "source-layer": "landuse", "minzoom": 5, "filter": [ "all", [ ">=", [ "to-number", [ "get", "sizerank" ] ], 0 ], [ "match", [ "get", "class" ], [ "agriculture", "wood", "grass", "scrub", "park", "airport", "glacier", "pitch", "sand" ], true, "residential", [ "step", [ "zoom" ], true, 12, false ], false ], [ "<=", [ "-", [ "to-number", [ "get", "sizerank" ] ], [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 12, 0, 18, 14 ] ], 8 ] ], "layout": {}, "paint": { "fill-color": "hsl(193, 95%, 79%)", "fill-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 8, [ "match", [ "get", "class" ], [ "residential", "airport" ], 0.8, 0.2 ], 12, [ "match", [ "get", "class" ], "residential", 0, 1 ] ] } }, { "id": "waterway", "type": "line", "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, water" }, "source": "composite", "source-layer": "waterway", "minzoom": 8, "layout": { "line-cap": [ "step", [ "zoom" ], "butt", 11, "round" ], "line-join": "round" }, "paint": { "line-color": "hsl(193, 87%, 73%)", "line-width": [ "interpolate", [ "exponential", 1.3 ], [ "zoom" ], 9, [ "match", [ "get", "class" ], [ "canal", "river" ], 0.1, 0 ], 20, [ "match", [ "get", "class" ], [ "canal", "river" ], 8, 3 ] ], "line-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 8, 0, 8.5, 1 ] } }, { "id": "water", "type": "fill", "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, water" }, "source": "composite", "source-layer": "water", "layout": {}, "paint": { "fill-color": "hsl(193, 87%, 73%)" } }, { "id": "land-structure-polygon", "type": "fill", "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, built" }, "source": "composite", "source-layer": "structure", "minzoom": 13, "filter": [ "all", [ "==", [ "get", "class" ], "land" ], [ "==", [ "geometry-type" ], "Polygon" ] ], "layout": {}, "paint": { "fill-color": [ "interpolate", [ "linear" ], [ "zoom" ], 9, "hsl(193, 95%, 90%)", 11, "hsl(193, 94%, 83%)" ] } }, { "id": "land-structure-line", "type": "line", "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, built" }, "source": "composite", "source-layer": "structure", "minzoom": 13, "filter": [ "all", [ "==", [ "get", "class" ], "land" ], [ "==", [ "geometry-type" ], "LineString" ] ], "layout": { "line-cap": "square" }, "paint": { "line-width": [ "interpolate", [ "exponential", 1.99 ], [ "zoom" ], 14, 0.75, 20, 40 ], "line-color": [ "interpolate", [ "linear" ], [ "zoom" ], 9, "hsl(193, 95%, 90%)", 11, "hsl(193, 94%, 83%)" ] } }, { "id": "aeroway-polygon", "type": "fill", "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, built" }, "source": "composite", "source-layer": "aeroway", "minzoom": 11, "filter": [ "all", [ "match", [ "get", "type" ], [ "runway", "taxiway", "helipad" ], true, false ], [ "==", [ "geometry-type" ], "Polygon" ] ], "paint": { "fill-color": "hsl(193, 95%, 91%)", "fill-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 10, 0, 11, 1 ] } }, { "id": "aeroway-line", "type": "line", "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, built" }, "source": "composite", "source-layer": "aeroway", "minzoom": 9, "filter": [ "==", [ "geometry-type" ], "LineString" ], "paint": { "line-color": "hsl(193, 95%, 91%)", "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 9, [ "match", [ "get", "type" ], "runway", 1, 0.5 ], 18, [ "match", [ "get", "type" ], "runway", 80, 20 ] ], "line-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 10, 0, 11, 1 ] } }, { "id": "building", "type": "fill", "metadata": { "mapbox:featureComponent": "buildings", "mapbox:group": "Buildings, built" }, "source": "composite", "source-layer": "building", "minzoom": 15, "filter": [ "all", [ "!=", [ "get", "type" ], "building:part" ], [ "==", [ "get", "underground" ], "false" ] ], "layout": {}, "paint": { "fill-color": "hsl(193, 90%, 78%)", "fill-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 15, 0, 16, 1 ], "fill-outline-color": "hsl(193, 85%, 72%)" } }, { "id": "tunnel-path-trail", "type": "line", "metadata": { "mapbox:featureComponent": "walking-cycling", "mapbox:group": "Walking, cycling, etc., tunnels" }, "source": "composite", "source-layer": "road", "minzoom": 14, "filter": [ "all", [ "==", [ "get", "structure" ], "tunnel" ], [ "==", [ "get", "class" ], "path" ], [ "match", [ "get", "type" ], [ "hiking", "mountain_bike", "trail" ], true, false ], [ "==", [ "geometry-type" ], "LineString" ] ], "layout": { "line-cap": "round" }, "paint": { "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 15, 1, 18, 4 ], "line-color": "hsl(193, 89%, 74%)", "line-dasharray": [ 10, 0 ] } }, { "id": "tunnel-path-cycleway-piste", "type": "line", "metadata": { "mapbox:featureComponent": "walking-cycling", "mapbox:group": "Walking, cycling, etc., tunnels" }, "source": "composite", "source-layer": "road", "minzoom": 12, "filter": [ "all", [ "==", [ "get", "structure" ], "tunnel" ], [ "==", [ "get", "class" ], "path" ], [ "match", [ "get", "type" ], [ "cycleway", "piste" ], true, false ], [ "==", [ "geometry-type" ], "LineString" ] ], "layout": {}, "paint": { "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 15, 1, 18, 4 ], "line-color": "hsl(193, 89%, 74%)", "line-dasharray": [ 10, 0 ] } }, { "id": "tunnel-path", "type": "line", "metadata": { "mapbox:featureComponent": "walking-cycling", "mapbox:group": "Walking, cycling, etc., tunnels" }, "source": "composite", "source-layer": "road", "minzoom": 14, "filter": [ "all", [ "==", [ "get", "structure" ], "tunnel" ], [ "==", [ "get", "class" ], "path" ], [ "!=", [ "get", "type" ], "steps" ], [ "==", [ "geometry-type" ], "LineString" ] ], "layout": { "line-cap": "round" }, "paint": { "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 15, 1, 18, 4 ], "line-color": "hsl(193, 89%, 74%)", "line-dasharray": [ 10, 0 ] } }, { "id": "tunnel-steps", "type": "line", "metadata": { "mapbox:featureComponent": "walking-cycling", "mapbox:group": "Walking, cycling, etc., tunnels" }, "source": "composite", "source-layer": "road", "minzoom": 14, "filter": [ "all", [ "==", [ "get", "structure" ], "tunnel" ], [ "==", [ "get", "type" ], "steps" ], [ "==", [ "geometry-type" ], "LineString" ] ], "paint": { "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 15, 1, 16, 1.6, 18, 6 ], "line-color": "hsl(193, 89%, 74%)", "line-dasharray": [ "step", [ "zoom" ], [ "literal", [ 1, 0 ] ], 15, [ "literal", [ 1.75, 1 ] ], 16, [ "literal", [ 1, 0.75 ] ], 17, [ "literal", [ 0.3, 0.3 ] ] ] } }, { "id": "tunnel-pedestrian", "type": "line", "metadata": { "mapbox:featureComponent": "walking-cycling", "mapbox:group": "Walking, cycling, etc., tunnels" }, "source": "composite", "source-layer": "road", "minzoom": 13, "filter": [ "all", [ "==", [ "get", "structure" ], "tunnel" ], [ "==", [ "get", "class" ], "pedestrian" ], [ "==", [ "geometry-type" ], "LineString" ] ], "paint": { "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 14, 0.5, 18, 12 ], "line-color": "hsl(193, 89%, 74%)", "line-dasharray": [ "step", [ "zoom" ], [ "literal", [ 1, 0 ] ], 15, [ "literal", [ 1.5, 0.4 ] ], 16, [ "literal", [ 1, 0.2 ] ] ] } }, { "id": "tunnel-simple", "type": "line", "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" }, "source": "composite", "source-layer": "road", "minzoom": 13, "filter": [ "all", [ "==", [ "get", "structure" ], "tunnel" ], [ "step", [ "zoom" ], [ "match", [ "get", "class" ], [ "motorway", "motorway_link", "trunk", "trunk_link", "primary", "secondary", "tertiary", "street", "street_limited", "primary_link", "track" ], true, false ], 14, [ "match", [ "get", "class" ], [ "motorway", "motorway_link", "trunk", "trunk_link", "primary", "primary_link", "secondary", "secondary_link", "tertiary", "tertiary_link", "street", "street_limited", "service", "track" ], true, false ] ], [ "==", [ "geometry-type" ], "LineString" ] ], "paint": { "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 13, [ "match", [ "get", "class" ], [ "motorway", "trunk", "primary" ], 2.4, [ "secondary", "tertiary" ], 1.5, [ "motorway_link", "trunk_link", "street", "street_limited", "primary_link" ], 0.6, 0.5 ], 18, [ "match", [ "get", "class" ], [ "motorway", "trunk", "primary" ], 19.2, [ "secondary", "tertiary" ], 15.6, [ "motorway_link", "trunk_link", "street", "street_limited", "primary_link" ], 10.799999999999999, 7.199999999999999 ], 22, [ "match", [ "get", "class" ], [ "motorway", "trunk", "primary" ], 192, [ "secondary", "tertiary" ], 156, [ "motorway_link", "trunk_link", "primary_link", "street", "street_limited" ], 108, 72 ] ], "line-color": "hsl(193, 95%, 93%)" } }, { "id": "road-path-trail", "type": "line", "metadata": { "mapbox:featureComponent": "walking-cycling", "mapbox:group": "Walking, cycling, etc., surface" }, "source": "composite", "source-layer": "road", "minzoom": 12, "filter": [ "all", [ "==", [ "get", "class" ], "path" ], [ "match", [ "get", "type" ], [ "hiking", "mountain_bike", "trail" ], true, false ], [ "match", [ "get", "structure" ], [ "none", "ford" ], true, false ], [ "==", [ "geometry-type" ], "LineString" ] ], "layout": { "line-cap": "round", "line-join": [ "step", [ "zoom" ], "miter", 14, "round" ] }, "paint": { "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 15, 1, 18, 4 ], "line-color": "hsl(193, 95%, 93%)", "line-dasharray": [ 10, 0 ] } }, { "id": "road-path-cycleway-piste", "type": "line", "metadata": { "mapbox:featureComponent": "walking-cycling", "mapbox:group": "Walking, cycling, etc., surface" }, "source": "composite", "source-layer": "road", "minzoom": 12, "filter": [ "all", [ "==", [ "get", "class" ], "path" ], [ "match", [ "get", "type" ], [ "cycleway", "piste" ], true, false ], [ "match", [ "get", "structure" ], [ "none", "ford" ], true, false ], [ "==", [ "geometry-type" ], "LineString" ] ], "layout": { "line-join": [ "step", [ "zoom" ], "miter", 14, "round" ] }, "paint": { "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 15, 1, 18, 4 ], "line-color": "hsl(193, 95%, 93%)", "line-dasharray": [ 10, 0 ] } }, { "id": "road-path", "type": "line", "metadata": { "mapbox:featureComponent": "walking-cycling", "mapbox:group": "Walking, cycling, etc., surface" }, "source": "composite", "source-layer": "road", "minzoom": 12, "filter": [ "all", [ "==", [ "get", "class" ], "path" ], [ "step", [ "zoom" ], [ "!", [ "match", [ "get",