Skip to content

Commit

Permalink
feat(markers): Add showers
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Sep 9, 2024
1 parent 592f084 commit 9e947cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
faHouse,
faQuestion,
faRestroom,
faShower,
faTrain,
} from "@fortawesome/free-solid-svg-icons";
import axios from "axios";
Expand Down Expand Up @@ -133,6 +134,7 @@ const getDataFromOverpass = (bbox) => {
nwr["landuse"~"cemetery"](around:1000,${bbox});
nwr["shop"~"convenience|deli|department_store|food|general|mall|supermarket"](around:1000,${bbox});
nwr["tourism"~"alpine_hut|apartment|camp_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut"](around:1000,${bbox});
nwr["amenity"="shower"](around:1000,${bbox});
nwr["railway"="station"](around:10000,${bbox});
);
out center;
Expand Down Expand Up @@ -306,6 +308,12 @@ const getMarkerFromType = (type) => {
icon: faHouse,
label: "abri",
},
shower: {
category: "eau",
color: "#1993D0",
icon: faShower,
label: "douches",
},
station: {
category: "transport",
color: "#AC4FC6",
Expand Down

0 comments on commit 9e947cf

Please sign in to comment.