-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Interactive Region Picking on Map #186
Labels
Comments
OhmSpectator
added
enhancement
New feature or request
front
Issues related to Web UI
labels
Dec 26, 2023
OhmSpectator
added a commit
that referenced
this issue
Jan 1, 2024
Added functionality for users to interactively pick regions directly from the map. Included enhancements involve setting up an event listener for region clicks, updating the selected region's state, and providing immediate UI feedback by changing cursor styles. The region click event identifies the selected region and updates the global state to reflect the new active region. Currently, placeholders for fetching additional region info and subregions are marked with TODOs. Issue: #186 Signed-off-by: Nikolay Martyanov <[email protected]>
OhmSpectator
added a commit
that referenced
this issue
Jan 1, 2024
Introduced useRef to track the previously selected region and prevent re-rendering and redundant fetch calls when the same region is clicked multiple times in the RegionMap component. This optimization enhances user interaction efficiency with the map. Issue: #186 Signed-off-by: TYR Architect <[email protected]> Signed-off-by: Nikolay Martyanov <[email protected]>
OhmSpectator
added a commit
that referenced
this issue
Jan 1, 2024
Refined the region object structure in MapComponent by updating 'hasSubregions' property with actual data from the 'newRegion' and altering the TODO comments to reflect the shift in scope for fetching region info and adding it to the region object. Issue: #186 Signed-off-by: Nikolay Martyanov <[email protected]>
OhmSpectator
added a commit
that referenced
this issue
Jan 1, 2024
Refined the region object structure in MapComponent by updating 'hasSubregions' property with actual data from the 'newRegion' and altering the TODO comments to reflect the shift in scope for fetching region info and adding it to the region object. Issue: #186 Signed-off-by: Nikolay Martyanov <[email protected]>
OhmSpectator
added a commit
that referenced
this issue
Jan 1, 2024
Added Material-UI Tooltip to RegionMap component to display region names when hovering over the map regions. This enhances user interactivity by providing immediate context about each region. Adjusted event handlers for mouse movements to control tooltip visibility and content based on the region under the cursor. Issue: #186 Signed-off-by: Nikolay Martyanov <[email protected]>
5 tasks
5 tasks
OhmSpectator
added a commit
that referenced
this issue
Jan 1, 2024
Added functionality for users to interactively pick regions directly from the map. Included enhancements involve setting up an event listener for region clicks, updating the selected region's state, and providing immediate UI feedback by changing cursor styles. The region click event identifies the selected region and updates the global state to reflect the new active region. Currently, placeholders for fetching additional region info and subregions are marked with TODOs. Issue: #186 Signed-off-by: Nikolay Martyanov <[email protected]>
OhmSpectator
added a commit
that referenced
this issue
Jan 1, 2024
Introduced useRef to track the previously selected region and prevent re-rendering and redundant fetch calls when the same region is clicked multiple times in the RegionMap component. This optimization enhances user interaction efficiency with the map. Issue: #186 Signed-off-by: TYR Architect <[email protected]> Signed-off-by: Nikolay Martyanov <[email protected]>
OhmSpectator
added a commit
that referenced
this issue
Jan 1, 2024
Refined the region object structure in MapComponent by updating 'hasSubregions' property with actual data from the 'newRegion' and altering the TODO comments to reflect the shift in scope for fetching region info and adding it to the region object. Issue: #186 Signed-off-by: Nikolay Martyanov <[email protected]>
OhmSpectator
added a commit
that referenced
this issue
Jan 1, 2024
Added Material-UI Tooltip to RegionMap component to display region names when hovering over the map regions. This enhances user interactivity by providing immediate context about each region. Adjusted event handlers for mouse movements to control tooltip visibility and content based on the region under the cursor. Issue: #186 Signed-off-by: Nikolay Martyanov <[email protected]>
github-project-automation
bot
moved this from 🏗 In progress
to ✅ Done
in Track Your Regions
Jan 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
Build upon the existing functionality of rendering several regions by implementing interactive region picking on the map. Users should be able to click on any displayed "currentLevel" region to select it. Upon selection, the application should update the global and local states to reflect the new active region, potentially triggering further UI updates or data fetching.
Requirements:
maplibre-gl
'squeryRenderedFeatures
or similar functionality to determine the clicked region.Additional Information:
Implement after #185
The text was updated successfully, but these errors were encountered: