Show landuse residential

This commit is contained in:
lukasmartinelli 2016-08-07 00:24:41 +02:00
parent 978176af09
commit 957608b95a

View File

@ -4,7 +4,7 @@
"metadata": { "metadata": {
"mapbox:groups": { "mapbox:groups": {
"1444849364238.8171": { "1444849364238.8171": {
"collapsed": true, "collapsed": false,
"name": "Building" "name": "Building"
}, },
"group_aeroway": { "group_aeroway": {
@ -12,7 +12,7 @@
"name": "Aeroway" "name": "Aeroway"
}, },
"group_boundary": { "group_boundary": {
"collapsed": true, "collapsed": false,
"name": "Boundary" "name": "Boundary"
}, },
"group_bridge": { "group_bridge": {
@ -20,7 +20,7 @@
"name": "Bridge" "name": "Bridge"
}, },
"group_country_label": { "group_country_label": {
"collapsed": true, "collapsed": false,
"name": "Country Label" "name": "Country Label"
}, },
"group_landuse": { "group_landuse": {
@ -32,23 +32,23 @@
"name": "Marine Label" "name": "Marine Label"
}, },
"group_place_label": { "group_place_label": {
"collapsed": true, "collapsed": false,
"name": "Place Label" "name": "Place Label"
}, },
"group_poi_label": { "group_poi_label": {
"collapsed": true, "collapsed": false,
"name": "POI Label" "name": "POI Label"
}, },
"group_road": { "group_road": {
"collapsed": true, "collapsed": false,
"name": "Road" "name": "Road"
}, },
"group_road_label": { "group_road_label": {
"collapsed": true, "collapsed": false,
"name": "Road Label" "name": "Road Label"
}, },
"group_state_label": { "group_state_label": {
"collapsed": true, "collapsed": false,
"name": "State Label" "name": "State Label"
}, },
"group_tunnel": { "group_tunnel": {
@ -56,7 +56,7 @@
"name": "Tunnel" "name": "Tunnel"
}, },
"group_water": { "group_water": {
"collapsed": true, "collapsed": false,
"name": "Water" "name": "Water"
}, },
"group_water_label": { "group_water_label": {
@ -88,33 +88,29 @@
"type": "background", "type": "background",
"interactive": true, "interactive": true,
"paint": { "paint": {
"background-color": "rgb(229,229,229)" "background-color": "rgb(239,239,239)"
} }
}, },
{ {
"id": "natural_earth", "id": "natural_earth",
"type": "raster", "type": "raster",
"source": "natural_earth_shaded_relief", "source": "natural_earth_shaded_relief",
"maxzoom": 7, "maxzoom": 6,
"interactive": true, "interactive": true,
"layout": { "layout": {
"visibility": "visible" "visibility": "visible"
}, },
"paint": { "paint": {
"raster-opacity": { "raster-opacity": {
"base": 1.4, "base": 1.5,
"stops": [ "stops": [
[ [
0, 0,
0.7 0.6
], ],
[ [
5, 6,
0.4 0.1
],
[
7,
0
] ]
] ]
} }
@ -136,19 +132,28 @@
], ],
"paint": { "paint": {
"fill-color": "#d8e8c8", "fill-color": "#d8e8c8",
"fill-opacity": { "fill-opacity": 0.7
"base": 1, }
"stops": [ },
[ {
4, "id": "landuse_residential",
0.3 "type": "fill",
], "metadata": {
[ "mapbox:group": "group_landuse"
9, },
0.7 "source": "osm2vectortiles",
] "source-layer": "landuse",
] "interactive": true,
} "filter": [
"==",
"class",
"residential"
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-color": "hsla(35, 57%, 88%, 0.49)"
} }
}, },
{ {
@ -242,11 +247,11 @@
"fill-antialias": false, "fill-antialias": false,
"fill-color": "hsl(91, 83%, 35%)", "fill-color": "hsl(91, 83%, 35%)",
"fill-opacity": { "fill-opacity": {
"base": 0.4, "base": 1,
"stops": [ "stops": [
[ [
6, 6,
0 0.1
], ],
[ [
9, 9,
@ -495,36 +500,44 @@
"source-layer": "building", "source-layer": "building",
"interactive": true, "interactive": true,
"paint": { "paint": {
"fill-color": "hsla(30, 1%, 73%, 0.44)" "fill-color": "hsl(35, 8%, 85%)",
"fill-outline-color": "hsl(35, 6%, 79%)"
} }
}, },
{ {
"id": "building_top", "id": "housenum_label",
"type": "symbol",
"metadata": { "metadata": {
"mapbox:group": "1444849364238.8171" "mapbox:group": "1444849364238.8171"
}, },
"ref": "building", "source": "osm2vectortiles",
"source-layer": "housenum_label",
"minzoom": 16,
"interactive": true, "interactive": true,
"layout": {
"text-field": "{house_num}",
"text-font": [
"Roboto Condensed",
"Arial Unicode MS Regular"
],
"text-max-width": 7,
"text-size": 9.5,
"visibility": "visible"
},
"paint": { "paint": {
"fill-color": "rgb(236,236,236)", "text-color": "hsl(35, 2%, 69%)",
"fill-opacity": 1, "text-halo-color": "hsl(35, 8%, 85%)",
"fill-outline-color": "hsla(30, 1%, 73%, 0.19)", "text-halo-width": 0.5,
"fill-translate": { "text-opacity": {
"base": 1, "base": 1,
"stops": [ "stops": [
[ [
16, 16,
[ 0
1,
1
]
], ],
[ [
18, 16.5,
[ 1
3,
3
]
] ]
] ]
} }
@ -1629,6 +1642,7 @@
}, },
"source": "osm2vectortiles", "source": "osm2vectortiles",
"source-layer": "road", "source-layer": "road",
"minzoom": 14,
"interactive": true, "interactive": true,
"filter": [ "filter": [
"all", "all",
@ -3096,7 +3110,7 @@
"text-max-width": 9, "text-max-width": 9,
"text-offset": [ "text-offset": [
0, 0,
0.6 0.8
], ],
"text-padding": 2, "text-padding": 2,
"text-size": 12, "text-size": 12,