Skip to content

Conversation

@regeter
Copy link
Contributor

@regeter regeter commented Oct 13, 2025

This PR introduces several key improvements to the map visualization, focusing on providing a more consistent and visually intuitive experience for tracking vehicle trips.

Key Changes:

  1. Consistent Polyline Coloring for Multi-Trip Vehicles:

    • What: Fixes a bug where a vehicle assigned to multiple trips (e.g., back-to-back trips) would generate a new polyline color. The vehicle's path now maintains a single, consistent color based on the first trip ID in its assignment.
    • Why: This was causing visual fragmentation and made it difficult to follow the vehicle's complete journey. The fix ensures a continuous and predictable visual representation.
  2. Trip-Based Coloring for Markers:

    • What: Pickup and dropoff markers are no longer hardcoded with their own colors. They now inherit the color of the trip polyline they belong to. Also adding a black stroke outline for better distinction from the trip polyline that now has the same color.
    • Why: This creates a strong visual link between a trip's path and its start/end points, which is especially helpful when multiple trips are displayed on the map simultaneously.

@regeter regeter merged commit 363e91b into googlemaps:main Oct 13, 2025
8 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 13, 2025
* feat: Allow zoom up to 22

* fix: Only use current trip for trip colors for multi trip vehicles

* feat: Use trip colors for pickup and drop off

* fix: save current parameters to query parameters on fetch

* fix: linter 363e91b
googlemaps-bot pushed a commit that referenced this pull request Oct 13, 2025
## [1.22.0](v1.21.1...v1.22.0) (2025-10-13)

### Features

* Refine Trip Visualization and Marker Appearance ([#257](#257)) ([363e91b](363e91b))
@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 1.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants