{ "version": 8, "name": "behavior-spacetime-offline-template", "sources": { "behavior-basemap": { "type": "vector", "url": "pmtiles://resource/map/china.pmtiles" } }, "layers": [ { "id": "behavior-background", "type": "background", "paint": { "background-color": "#f7fafc" } }, { "id": "behavior-landcover", "type": "fill", "source": "behavior-basemap", "source-layer": "landcover", "paint": { "fill-color": "#e7efe4", "fill-opacity": 0.8 } }, { "id": "behavior-landuse", "type": "fill", "source": "behavior-basemap", "source-layer": "landuse", "paint": { "fill-color": [ "match", [ "get", "class" ], "industrial", "#ece6df", "residential", "#f3efe7", "commercial", "#f7eee1", "#eef2e7" ], "fill-opacity": 0.72 } }, { "id": "behavior-park", "type": "fill", "source": "behavior-basemap", "source-layer": "park", "paint": { "fill-color": "#dcefd4", "fill-opacity": 0.76 } }, { "id": "behavior-water", "type": "fill", "source": "behavior-basemap", "source-layer": "water", "paint": { "fill-color": "#cfe6ff", "fill-opacity": 0.96 } }, { "id": "behavior-waterway", "type": "line", "source": "behavior-basemap", "source-layer": "waterway", "paint": { "line-color": "#9dc8f7", "line-width": [ "interpolate", [ "linear" ], [ "zoom" ], 4, 0.6, 12, 2.2 ] } }, { "id": "behavior-boundary", "type": "line", "source": "behavior-basemap", "source-layer": "boundary", "paint": { "line-color": "#a7b3c2", "line-width": [ "interpolate", [ "linear" ], [ "zoom" ], 3, 0.4, 10, 1.1 ], "line-dasharray": [ 3, 2 ], "line-opacity": 0.7 } }, { "id": "behavior-transportation-casing", "type": "line", "source": "behavior-basemap", "source-layer": "transportation", "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "#ffffff", "line-width": [ "interpolate", [ "linear" ], [ "zoom" ], 5, [ "match", [ "get", "class" ], "motorway", 1.4, "trunk", 1.3, "primary", 1.2, 0.9 ], 12, [ "match", [ "get", "class" ], "motorway", 7.2, "trunk", 6.2, "primary", 5.4, 3.2 ] ], "line-opacity": 0.94 } }, { "id": "behavior-transportation", "type": "line", "source": "behavior-basemap", "source-layer": "transportation", "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": [ "match", [ "get", "class" ], "motorway", "#e3a34a", "trunk", "#efb366", "primary", "#f3c985", "secondary", "#f5d8aa", "#d6dde5" ], "line-width": [ "interpolate", [ "linear" ], [ "zoom" ], 5, [ "match", [ "get", "class" ], "motorway", 0.9, "trunk", 0.8, "primary", 0.7, 0.5 ], 12, [ "match", [ "get", "class" ], "motorway", 4.8, "trunk", 4.2, "primary", 3.4, 2.2 ] ], "line-opacity": 0.98 } }, { "id": "behavior-aeroway", "type": "line", "source": "behavior-basemap", "source-layer": "aeroway", "paint": { "line-color": "#bcc7d3", "line-width": [ "interpolate", [ "linear" ], [ "zoom" ], 8, 0.7, 12, 2.4 ] } }, { "id": "behavior-building", "type": "fill", "source": "behavior-basemap", "source-layer": "building", "paint": { "fill-color": "#dbe3ea", "fill-opacity": 0.74, "fill-outline-color": "#c7d1da" } }, { "id": "behavior-water-name", "type": "symbol", "source": "behavior-basemap", "source-layer": "water_name", "minzoom": 4, "filter": [ "has", "name" ], "layout": { "symbol-placement": "line", "text-field": [ "coalesce", [ "get", "name:zh-Hans" ], [ "get", "name:zh" ], [ "get", "name" ] ], "text-font": [ "Microsoft YaHei", "Microsoft JhengHei", "Noto Sans CJK SC" ], "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 4, 10, 12, 14 ] }, "paint": { "text-color": "#5b8dbf", "text-halo-color": "rgba(255, 255, 255, 0.92)", "text-halo-width": 1.2 } }, { "id": "behavior-transportation-name", "type": "symbol", "source": "behavior-basemap", "source-layer": "transportation_name", "minzoom": 9, "filter": [ "has", "name" ], "layout": { "symbol-placement": "line", "text-field": [ "coalesce", [ "get", "name:zh-Hans" ], [ "get", "name:zh" ], [ "get", "name" ] ], "text-font": [ "Microsoft YaHei", "Microsoft JhengHei", "Noto Sans CJK SC" ], "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 9, 10, 14, 13 ], "symbol-spacing": 320 }, "paint": { "text-color": "#6b7280", "text-halo-color": "rgba(255, 255, 255, 0.96)", "text-halo-width": 1.4 } }, { "id": "behavior-place-label", "type": "symbol", "source": "behavior-basemap", "source-layer": "place", "minzoom": 3, "filter": [ "has", "name" ], "layout": { "text-field": [ "coalesce", [ "get", "name:zh-Hans" ], [ "get", "name:zh" ], [ "get", "name" ] ], "text-font": [ "Microsoft YaHei", "Microsoft JhengHei", "Noto Sans CJK SC" ], "text-size": [ "match", [ "get", "class" ], "country", 15, "state", 14, "province", 14, "city", 13, "town", 12, "village", 11, 11 ], "text-anchor": "top", "text-offset": [ 0, 0.6 ] }, "paint": { "text-color": "#1f2937", "text-halo-color": "rgba(255, 255, 255, 0.98)", "text-halo-width": 1.5 } }, { "id": "behavior-poi-label", "type": "symbol", "source": "behavior-basemap", "source-layer": "poi", "minzoom": 12, "filter": [ "has", "name" ], "layout": { "text-field": [ "coalesce", [ "get", "name:zh-Hans" ], [ "get", "name:zh" ], [ "get", "name" ] ], "text-font": [ "Microsoft YaHei", "Microsoft JhengHei", "Noto Sans CJK SC" ], "text-size": 11, "text-anchor": "top", "text-offset": [ 0, 0.7 ] }, "paint": { "text-color": "#374151", "text-halo-color": "rgba(255, 255, 255, 0.96)", "text-halo-width": 1.2 } } ] }