Skip to content

Conversation

@naoki-00-ito
Copy link
Member

This pull request adds support for displaying violation rate markers on the map, improves marker visuals based on violation data, and updates the marker and score components for better clarity and user experience. The changes include backend integration for violation rates, dynamic marker sizing and styling, and UI improvements for score display.

Map integration and marker display:

  • Added a query to fetch violation rate data (/violation_rates) and display corresponding markers on the map, with dynamic sizing and additional information such as count and rate. [1] [2]
  • Updated the marker component to support a new VIOLATION type, including color, label, and icon, and adjusted marker opacity for warning and violation types. [1] [2]

Marker appearance and logic:

  • Marker size now dynamically increases for violation points with higher counts or rates, using a memoized calculation.
  • Changed route polyline color from red to blue for improved visibility.

Score component UI:

  • Updated the score component to use a dynamic text color based on status, improving readability and consistency.

Backend schema update:

  • Added a name field to the warning point schema in the API specification to support marker display enhancements.

@naoki-00-ito naoki-00-ito self-assigned this Aug 23, 2025
@naoki-00-ito naoki-00-ito merged commit 43e9f55 into develop Aug 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

事故注意地点マーカー表示 /violation_rates から取得して表示

2 participants