Closed paodb closed 5 months ago
The recent updates primarily focus on upgrading dependencies and enhancing the location tracking functionality in the GoogleMap
class. The pom.xml
file sees version upgrades for the google-maps
and Vaadin artifacts. The GoogleMap
class introduces a new field and methods to manage location tracking sessions more effectively. Corresponding changes in the TrackLocationDemo
class improve the UI and handling of location tracking notifications.
File Path | Change Summary |
---|---|
pom.xml |
Updated google-maps version to 2.0.0-SNAPSHOT and Vaadin version to 14.11.11 . |
.../googlemaps/GoogleMap.java |
Added trackLocationId field, getTrackLocationId() method, and modified trackLocation() and stopTrackLocation() methods. |
.../googlemaps/TrackLocationDemo.java |
Removed trackLocationId field, added HorizontalLayout import, and modified button handling and notifications. |
sequenceDiagram
participant User
participant TrackLocationDemo
participant GoogleMap
User ->> TrackLocationDemo: Click "Start Tracking"
TrackLocationDemo ->> GoogleMap: trackLocation()
GoogleMap ->> GoogleMap: Check if tracking session is active
GoogleMap -->> TrackLocationDemo: Start new tracking session
TrackLocationDemo -->> User: Notify tracking started
User ->> TrackLocationDemo: Click "Stop Tracking"
TrackLocationDemo ->> GoogleMap: stopTrackLocation()
GoogleMap ->> GoogleMap: Stop current tracking session
GoogleMap -->> TrackLocationDemo: Confirm tracking stopped
TrackLocationDemo -->> User: Notify tracking stopped
In lines of code, we weave a tale,
Of maps and tracks, where features sail.
With buttons bright and sessions clear,
New versions bring the future near.
A rabbit's cheer for changes made,
In software's dance, improvements laid.
🌟🚀
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
This PR closes issue #133. Location tracking id is now handled internally.
trackLocation
method was changed to update the internal value and to throw an exception in case an attemp to start a second tracking is done. stopTrackLocation
method was also updated to stop the tracking using the internal value and to clear this value when the tracking session is stopped. Demo view was updated to reflect these changes too.As this refactor is a breaking change a version update is also included. And Vaadin version was also updated to the latest Vaadin 14 version.
Summary by CodeRabbit
New Features
Improvements
google-maps
and Vaadin to ensure better compatibility and performance.Refactor