From 495d47ab422988053666c0d3d647e3e235fa21e3 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Fri, 21 Feb 2014 16:00:01 -0800 Subject: [PATCH] refs #60: add some more point styles --- bin/style.js | 77 +++++++++++++++++++++++++++++++++++++++----- resources/style.pbf | Bin 1090 -> 1622 bytes 2 files changed, 69 insertions(+), 8 deletions(-) diff --git a/bin/style.js b/bin/style.js index 0383c3210..7675f101e 100644 --- a/bin/style.js +++ b/bin/style.js @@ -52,13 +52,41 @@ module.exports = { "layer": "building", "type": "fill" }, - "alcohol": { + "alcohol_poi": { "datasource": "streets", "layer": "poi_label", "field": "type", "value": ["Alcohol"], "type": "point" - } + }, + "cafe_poi": { + "datasource": "streets", + "layer": "poi_label", + "field": "type", + "value": ["Cafe"], + "type": "point" + }, + "embassy_poi": { + "datasource": "streets", + "layer": "poi_label", + "field": "type", + "value": ["Embassy"], + "type": "point" + }, + "park_poi": { + "datasource": "streets", + "layer": "poi_label", + "field": "type", + "value": ["Park"], + "type": "point" + }, + "restaurant_poi": { + "datasource": "streets", + "layer": "poi_label", + "field": "type", + "value": ["Restaurant"], + "type": "point" + }, }, "sprite": "img/maki-sprite", "structure": [ @@ -69,7 +97,11 @@ module.exports = { { "name": "road_limited", "bucket": "road_limited" }, { "name": "road_regular", "bucket": "road_regular" }, { "name": "road_large", "bucket": "road_large" }, - { "name": "alcohol", "bucket": "alcohol" } + { "name": "alcohol_poi", "bucket": "alcohol_poi" }, + { "name": "cafe_poi", "bucket": "cafe_poi" }, + { "name": "embassy_poi", "bucket": "embassy_poi" }, + { "name": "park_poi", "bucket": "park_poi" }, + { "name": "restaurant_poi", "bucket": "restaurant_poi" }, ], "classes": [ { @@ -138,12 +170,41 @@ module.exports = { { z: 30, val: 64 } ], }, - "alcohol": { + "alcohol_poi": { "type": "marker", - "color": "#999999", - "size": 24, - "image": "alcohol-shop" - } + "color": "#cccccc", + "size": 18, + "image": "alcohol-shop", + "opacity": 0.75 + }, + "cafe_poi": { + "type": "marker", + "color": "#cccccc", + "size": 18, + "image": "cafe", + "opacity": 0.75 + }, + "embassy_poi": { + "type": "marker", + "color": "#cccccc", + "size": 18, + "image": "embassy", + "opacity": 0.75 + }, + "park_poi": { + "type": "marker", + "color": "#cccccc", + "size": 18, + "image": "park", + "opacity": 0.75 + }, + "restaurant_poi": { + "type": "marker", + "color": "#cccccc", + "size": 18, + "image": "restaurant", + "opacity": 0.75 + }, } } ] diff --git a/resources/style.pbf b/resources/style.pbf index 46e117e52dcff7d78ee2fbec60fb4842abc611c5..6823fc7b813619ba42f38beb845537d3cc2b5f80 100644 GIT binary patch delta 530 zcmX@aagArgJw`qgF7CvfLoFRnlCLs}obA;dy69Vc$a*PlP2dD$)8X*Kr0o^S^aJO+n94B>wW%E9!SjKwP zP?7zA=FAx-4h|+E76yh1jz&Pe8{Fh8LyN2q22DN!;-_b6@+T!`2K0LuEJ_5c6? delta 105 zcmcb{bBJTZJw`4AF80KnK|>LU36jm@=sr=FMy@v5e|! fa5>rkGiT0J;^1HsVqsu7;ON8yHBq-XBfkIuz#$-x