Skip to content

Commit

Permalink
Add ranger station poi icon
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Nov 10, 2023
1 parent 5e4142f commit a56b61e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file added img/map/ranger_station.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ window.onload = (event) => {
if (error) throw error;
map.addImage('trailhead-icon', image, { pixelRatio: 2 });
});
map.loadImage('img/map/ranger_station.png', (error, image) => {
if (error) throw error;
map.addImage('ranger_station-icon', image, { pixelRatio: 2 });
});

var impliedYesHighways = {
foot: [
Expand Down Expand Up @@ -330,7 +334,11 @@ window.onload = (event) => {
"source-layer": "trail_poi",
"type": "symbol",
"layout": {
"icon-image": ["image", "trailhead-icon"],
"icon-image": [
"match", ["get", "highway"],
"trailhead", ["image", "trailhead-icon"],
["image", "ranger_station-icon"]
],
"icon-size": [
"interpolate", ["linear"], ["zoom"],
12, 0.5,
Expand Down

0 comments on commit a56b61e

Please sign in to comment.