move to linear properties for POI opacity

This commit is contained in:
Justin R. Miller
2014-02-21 16:22:45 -08:00
parent b6d7169b83
commit 7a48e8ddce
3 changed files with 21 additions and 16 deletions

View File

@@ -175,35 +175,35 @@ module.exports = {
"color": "#cccccc",
"size": 18,
"image": "alcohol-shop",
"opacity": 0.75
"opacity": [ "linear", 15, 0, 1.0, 0, 0.75 ]
},
"cafe_poi": {
"type": "marker",
"color": "#cccccc",
"size": 18,
"image": "cafe",
"opacity": 0.75
"opacity": [ "linear", 15, 0, 1.0, 0, 0.75 ]
},
"embassy_poi": {
"type": "marker",
"color": "#cccccc",
"size": 18,
"image": "embassy",
"opacity": 0.75
"opacity": [ "linear", 15, 0, 1.0, 0, 0.75 ]
},
"park_poi": {
"type": "marker",
"color": "#cccccc",
"size": 18,
"image": "park",
"opacity": 0.75
"opacity": [ "linear", 15, 0, 1.0, 0, 0.75 ]
},
"restaurant_poi": {
"type": "marker",
"color": "#cccccc",
"size": 18,
"image": "restaurant",
"opacity": 0.75
"opacity": [ "linear", 15, 0, 1.0, 0, 0.75 ]
},
}
}

Binary file not shown.

View File

@@ -68,7 +68,7 @@ const unsigned char resources::style[] = {
97, 114, 107, 95, 112, 111, 105, 18, 8, 112, 97, 114, 107, 95, 112, 111,
105, 18, 32, 10, 14, 114, 101, 115, 116, 97, 117, 114, 97, 110, 116, 95,
112, 111, 105, 18, 14, 114, 101, 115, 116, 97, 117, 114, 97, 110, 116, 95,
112, 111, 105, 26, 208, 4, 10, 7, 100, 101, 102, 97, 117, 108, 116, 18,
112, 111, 105, 26, 160, 5, 10, 7, 100, 101, 102, 97, 117, 108, 116, 18,
27, 10, 4, 112, 97, 114, 107, 34, 8, 8, 2, 18, 4, 0, 0, 128,
63, 45, 255, 159, 223, 200, 66, 4, 112, 97, 114, 107, 18, 31, 10, 4,
119, 111, 111, 100, 34, 8, 8, 2, 18, 4, 0, 0, 128, 63, 45, 255,
@@ -90,21 +90,26 @@ const unsigned char resources::style[] = {
18, 48, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 48, 65, 0, 0,
0, 63, 0, 0, 80, 65, 0, 0, 128, 63, 0, 0, 128, 65, 0, 0,
128, 64, 0, 0, 160, 65, 0, 0, 128, 66, 0, 0, 240, 65, 0, 0,
128, 66, 34, 52, 10, 11, 97, 108, 99, 111, 104, 111, 108, 95, 112, 111,
128, 66, 34, 68, 10, 11, 97, 108, 99, 111, 104, 111, 108, 95, 112, 111,
105, 29, 255, 204, 204, 204, 34, 8, 8, 2, 18, 4, 0, 0, 144, 65,
50, 8, 8, 2, 18, 4, 0, 0, 64, 63, 66, 12, 97, 108, 99, 111,
104, 111, 108, 45, 115, 104, 111, 112, 34, 41, 10, 8, 99, 97, 102, 101,
50, 24, 8, 4, 18, 20, 0, 0, 112, 65, 0, 0, 0, 0, 0, 0,
128, 63, 0, 0, 0, 0, 0, 0, 64, 63, 66, 12, 97, 108, 99, 111,
104, 111, 108, 45, 115, 104, 111, 112, 34, 57, 10, 8, 99, 97, 102, 101,
95, 112, 111, 105, 29, 255, 204, 204, 204, 34, 8, 8, 2, 18, 4, 0,
0, 144, 65, 50, 8, 8, 2, 18, 4, 0, 0, 64, 63, 66, 4, 99,
97, 102, 101, 34, 47, 10, 11, 101, 109, 98, 97, 115, 115, 121, 95, 112,
0, 144, 65, 50, 24, 8, 4, 18, 20, 0, 0, 112, 65, 0, 0, 0,
0, 0, 0, 128, 63, 0, 0, 0, 0, 0, 0, 64, 63, 66, 4, 99,
97, 102, 101, 34, 63, 10, 11, 101, 109, 98, 97, 115, 115, 121, 95, 112,
111, 105, 29, 255, 204, 204, 204, 34, 8, 8, 2, 18, 4, 0, 0, 144,
65, 50, 8, 8, 2, 18, 4, 0, 0, 64, 63, 66, 7, 101, 109, 98,
97, 115, 115, 121, 34, 41, 10, 8, 112, 97, 114, 107, 95, 112, 111, 105,
65, 50, 24, 8, 4, 18, 20, 0, 0, 112, 65, 0, 0, 0, 0, 0,
0, 128, 63, 0, 0, 0, 0, 0, 0, 64, 63, 66, 7, 101, 109, 98,
97, 115, 115, 121, 34, 57, 10, 8, 112, 97, 114, 107, 95, 112, 111, 105,
29, 255, 204, 204, 204, 34, 8, 8, 2, 18, 4, 0, 0, 144, 65, 50,
8, 8, 2, 18, 4, 0, 0, 64, 63, 66, 4, 112, 97, 114, 107, 34,
53, 10, 14, 114, 101, 115, 116, 97, 117, 114, 97, 110, 116, 95, 112, 111,
24, 8, 4, 18, 20, 0, 0, 112, 65, 0, 0, 0, 0, 0, 0, 128,
63, 0, 0, 0, 0, 0, 0, 64, 63, 66, 4, 112, 97, 114, 107, 34,
69, 10, 14, 114, 101, 115, 116, 97, 117, 114, 97, 110, 116, 95, 112, 111,
105, 29, 255, 204, 204, 204, 34, 8, 8, 2, 18, 4, 0, 0, 144, 65,
50, 8, 8, 2, 18, 4, 0, 0, 64, 63, 66, 10, 114, 101, 115, 116,
50, 24, 8, 4, 18, 20, 0, 0, 112, 65, 0, 0, 0, 0, 0, 0,
128, 63, 0, 0, 0, 0, 0, 0, 64, 63, 66, 10, 114, 101, 115, 116,
97, 117, 114, 97, 110, 116
};
const unsigned long resources::style_size = sizeof(resources::style);