rgba values not always picked up #1

Open
opened 2025-03-05 10:40:04 +01:00 by Robin-van-der-Linde · 0 comments

RGBA values are not picked up as a color when in the format rgba(red, green, blue, alpha)

Example
afbeelding

"color": {
        "render": "rgba(170, 170, 170, 0.7)",
        "mappings": [
          {
            "if": "highway=cycleway",
            "then": "rgba(0, 189, 141, 0.7)"
          },
          {
            "if": "highway=path",
            "then": "rgba(204, 74, 207, 0.7)"
          },
          {
            "if": "cycleway=track",
            "then": "rgba(113, 3, 200, 0.7)"
          },
          {
            "if": "cycleway=shared_lane",
            "then": "rgba(74, 59, 247, 0.7)"
          },
          {
            "if": "cycleway=lane",
            "then": "rgba(254, 155, 6, 0.9)"
          },
          {
            "if": "cyclestreet=yes",
            "then": "rgba(57, 159, 191, 0.7)"
          },
          {
            "if": "cycleway=no",
            "then": "rgba(0, 0, 0, 0.7)"
          }
        ]
      },
RGBA values are not picked up as a color when in the format `rgba(red, green, blue, alpha)` Example ![afbeelding](/attachments/0c923f53-72b4-4cc4-9b5a-a3a270d57d36) ```json "color": { "render": "rgba(170, 170, 170, 0.7)", "mappings": [ { "if": "highway=cycleway", "then": "rgba(0, 189, 141, 0.7)" }, { "if": "highway=path", "then": "rgba(204, 74, 207, 0.7)" }, { "if": "cycleway=track", "then": "rgba(113, 3, 200, 0.7)" }, { "if": "cycleway=shared_lane", "then": "rgba(74, 59, 247, 0.7)" }, { "if": "cycleway=lane", "then": "rgba(254, 155, 6, 0.9)" }, { "if": "cyclestreet=yes", "then": "rgba(57, 159, 191, 0.7)" }, { "if": "cycleway=no", "then": "rgba(0, 0, 0, 0.7)" } ] }, ```
Robin-van-der-Linde added the
bug
label 2025-03-05 10:40:04 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Robin-van-der-Linde/MapCompleteVScode#1
No description provided.