Skip to content

v1.8.2 - Update MapboxMap with VLE props for using inside an iframe + update workflow yamls #502

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

Merged
merged 15 commits into from
Mar 27, 2025

Conversation

k-gerner
Copy link
Contributor

@k-gerner k-gerner commented Mar 25, 2025

I have added two props to the MapboxMap component: iframeWindow and allowUpdates. These props were added to enable usage of this component in the Visual Layout Editor. Because we are using the component in an iframe, we need to use the iframe's mapboxgl library to properly reference the window. Additionally, the allowUpdates property is used so that we can dynamically change properties / styles of the map through the VLE. Currently, we only allow changing the "style" of the map (such as satellite view, dark mode, etc), but more can be added as necessary. With this property set to true, we will listen to updates to the mapbox options, and update when applicable.

Separately, I have added a navigation button section, which contains + and - buttons for zooming in and out of the map.

Additionally, I have fixed some of the workflows and test cases that were having errors.

@k-gerner k-gerner requested a review from a team as a code owner March 25, 2025 23:44
@k-gerner k-gerner changed the title Hotfix/v1.8.2 v1.8.2 - Update MapboxMap with VLE props for using inside an iframe + update workflow yamls Mar 26, 2025
Copy link
Contributor

Current unit coverage is 91.95837275307474%
Current visual coverage is 78.96150402864816%
Current combined coverage is 92.43498817966903%

@coveralls
Copy link

coveralls commented Mar 26, 2025

Coverage Status

coverage: 87.746% (+2.6%) from 85.189%
when pulling 77f2136 on hotfix/v1.8.2
into 89a08ed on main.

Fondryext
Fondryext previously approved these changes Mar 27, 2025
@k-gerner k-gerner merged commit 055c51d into main Mar 27, 2025
25 of 27 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.

3 participants