Skip to content

Commit

Permalink
Coffee shops
Browse files Browse the repository at this point in the history
ZeLonewolf committed Jan 11, 2023
1 parent 897573a commit 353485f
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions icons/poi_coffee_cup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions src/layer/poi.js
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ import * as Color from "../constants/color.js";

var iconDefs = {
bar: ["bar", "beer", "pub"],
coffee: ["cafe"],
hospital: "hospital",
medical: ["doctors", "clinic"],
parking: "parking",
@@ -20,7 +21,7 @@ export const poi = {
"text-color": [
"match",
["get", "subclass"],
[...iconDefs.bar],
[...iconDefs.bar, ...iconDefs.coffee],
Color.poi.consumer,
["hospital", "parking"],
Color.poi.infrastructure,
@@ -35,7 +36,7 @@ export const poi = {
["get", "subclass"],
"hospital",
15,
[...iconDefs.bar],
[...iconDefs.bar, ...iconDefs.coffee],
16,
["clinic", "doctors", "parking"],
17,
@@ -57,6 +58,8 @@ export const poi = {
["get", "subclass"],
iconDefs.bar,
"poi_martini_glass",
iconDefs.coffee,
"poi_coffee_cup",
iconDefs.medical,
"poi_health_cross",
iconDefs.hospital,
@@ -90,6 +93,11 @@ export const legendEntries = [
layers: [poi.id],
filter: ["in", ["get", "subclass"], ["literal", iconDefs.medical]],
},
{
description: "Coffee shop",
layers: [poi.id],
filter: ["in", ["get", "subclass"], ["literal", iconDefs.coffee]],
},
{
description: "Bar or pub",
layers: [poi.id],

0 comments on commit 353485f

Please sign in to comment.