Skip to content

Commit

Permalink
Merge pull request c2corg#3868 from Nayor/feature/c2corg#846-public-t…
Browse files Browse the repository at this point in the history
…ransport-in-green

feat: c2corg#846 colorize waypoint with transportation services
  • Loading branch information
brunobesson authored May 15, 2024
2 parents 4293da7 + 663e98b commit 918668a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/map/map-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ export const getDocumentPointStyle = function (document, title, highlight) {
if (type === 'i' || type === 'u' || type === 'x' || type === 'o' || type === 'r') {
svgSrc = svgSrcByDocumentType[type];
} else if (type === 'w') {
if (
document.waypoint_type === 'access' &&
document.public_transportation_rating &&
document.public_transportation_rating !== 'no service'
) {
// bulma green
color = '#4baf50';
}
svgSrc = icon({ prefix: 'waypoint', iconName: document.waypoint_type || 'misc' }).html[0];
} else if (type === 'a') {
return new ol.style.Style();
Expand Down

0 comments on commit 918668a

Please sign in to comment.