Skip to content

Commit

Permalink
Added trails pois source and relevant handling
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Jul 14, 2024
1 parent ffbbd51 commit c102b16
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions IsraelHiking.Web/src/application/services/poi.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ export class PoiService {
minzoom: 0,
tiles: ["https://production.pois.israelhikingmap.workers.dev/public_pois/{z}/{x}/{y}.mvt"]
} },
"trail-points-of-interest": { sourceLayer: "trail_pois", source: {
type: "vector",
maxzoom: 14,
minzoom: 0,
tiles: ["https://production.pois.israelhikingmap.workers.dev/trail_pois/{z}/{x}/{y}.mvt"]
} },
"external-points-of-interest": { sourceLayer: "external", source: {
type: "vector",
url: "https://israelhiking.osm.org.il/vector/data/external.json"
Expand Down Expand Up @@ -267,6 +273,22 @@ export class PoiService {
poi.properties.poiCategory = "Other";
return;
}
if (feature.properties.network) {
switch (feature.properties.network) {
case "lcn":
case "rcn":
poi.properties.poiIconColor = "black";
poi.properties.poiIcon = "icon-bike";
poi.properties.poiCategory = "Bicycle";
return;
case "lwn":
case "rwn":
poi.properties.poiIconColor = "black";
poi.properties.poiIcon = "icon-hike";
poi.properties.poiCategory = "Hiking";
return;
}
}
if (feature.properties.historic) {
poi.properties.poiIconColor = "#666666";
poi.properties.poiCategory = "Historic";
Expand Down

0 comments on commit c102b16

Please sign in to comment.