Skip to content

Commit

Permalink
Merge branch 'main' into clay-shields-sa-national
Browse files Browse the repository at this point in the history
  • Loading branch information
claysmalley authored Apr 17, 2023
2 parents f1f10a6 + d8fd238 commit 8184ac7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
6 changes: 6 additions & 0 deletions icons/poi_aerialway_circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 23 additions & 1 deletion src/layer/poi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ import * as label from "../constants/label.js";
import * as Color from "../constants/color.js";

var iconDefs = {
aerialway_station: {
classes: {
aerialway: ["station"],
},
sprite: "poi_aerialway_circle",
color: Color.poi.transport,
description: "Aerial lift station",
},
bar: {
classes: {
bar: ["bar"],
Expand Down Expand Up @@ -205,7 +213,21 @@ export const poi = {
},
"icon-image": imageExpression,
"icon-size": 1.0,
"text-field": label.localizedName,
"text-field": [
"step",
["zoom"],
[
"match",
["get", "subclass"],
["bus_stop", "tram_stop"],
"",
label.localizedName,
],
16,
["match", ["get", "subclass"], ["bus_stop"], "", label.localizedName],
17,
label.localizedName,
],
"text-variable-anchor": ["left", "right", "bottom"],
"text-justify": "auto",
"text-radial-offset": 1.2,
Expand Down
2 changes: 1 addition & 1 deletion src/layer/rail.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ const isTram = ["==", ["get", "subclass"], "tram"];

export const legendEntries = [
{
description: "Mainline track",
description: "Main or branch line track",
layers: [rail.dashes().id, railway.fill().id],
filter: ["all", isGenericRail, isNotService, isNotCrossover],
},
Expand Down

0 comments on commit 8184ac7

Please sign in to comment.