refs #60: add some more point styles
This commit is contained in:
77
bin/style.js
77
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
|
||||
},
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user