Skip to content
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

Layers composable #348

Merged
merged 8 commits into from
May 12, 2024
Merged

Layers composable #348

merged 8 commits into from
May 12, 2024

Conversation

d-koppenhagen
Copy link
Collaborator

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Tests
  • Other (Tooling, Dependency Updates, etc.)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I added a new test.

If you added a new component feature (layer, geom, source, etc.), please be sure to update the documentation:

  • Add component to output.globals in vite.config.ts
  • Provide at least one simple snapshot test (see test directory)
  • Create a src/demos/<Component>Demo.vue
  • Create a docs/componentsguide/<Category>/<Feature>/index.md containing the Demo and documentation for the component
  • Add the docs page to docs/.vitepress/config.ts

…t component injection

BREAKING CHANGE:
These changes may not affect you directly. Previously, for some layer types, a layer was always added to the map, even if the layer component was used within a LayerGroup. This resulted in layers existing multiple times (in the LayerGroup and at the top level (Reported in #344)). Due to the refactoring, all layers are now treated the same (with onMounted and when changing layer properties).
1.) If the layer component is within an `ol-layer-group`, it is added to the group.
2.) If the layer component is inside an `ol-overviewmap-control`, it is added to the OverviewMap
3.) If 1) and 2) do not apply, the layer component is added directly to the map

partially fixes #344
Copy link

netlify bot commented May 12, 2024

Deploy Preview for vue3openlayers ready!

Name Link
🔨 Latest commit c8664e3
🔍 Latest deploy log https://app.netlify.com/sites/vue3openlayers/deploys/66411660b1f77e0008a2fccc
😎 Deploy Preview https://deploy-preview-348--vue3openlayers.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@d-koppenhagen d-koppenhagen merged commit eb0a2a8 into main May 12, 2024
5 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.

1 participant