Add Deck.gl Layers and Utility Support for vue-maplibre-gL #106
+747
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of Changes
This pull request enhances the package with the following additions:
New Components for Deck.gl Layers:
MglDeckGeojsonLayer
component to integrate Deck.gl'sGeoJsonLayer
(@commit:43bab18a).MglDeckArcLayer
component to integrate Deck.gl'sArcLayer
(@commit:2dba67d3).Core Composable for Layer Management:
useDeckLayer
composable to handle lifecycle and reactivity for Deck.gl layers within Maplibre (@commit:462eb07f).Utility and Prop Configuration:
deck.layer.lib.ts
, which defines common and layer-specific props with utilities for Deck.gl layers, ensuring reusable, type-safe layer configurations (@commit:9503c64c).New Dependencies:
@deck.gl/core
,@deck.gl/layers
,@deck.gl/mapbox
) to the project (package.json
updates) (@commit:b0b75cca).Features
ArcLayer
andGeoJsonLayer
, integrated as reusable Vue components.getTooltip
functionality.Motivation
The goal of these changes is to expand the functionality of the
@indoorequal/vue-maplibre-gl
package by introducing seamless integration with Deck.gl layers. These enhancements bring extended interactivity, 3D visualization, and customization options for applications using the library. The composable and utility-driven design ensures easier implementation and extension of Deck.gl layers within Vue projects.Future Plans
This is just the beginning of integrating Deck.gl into the
@indoorequal/vue-maplibre-gl
package. Over time, the implementation will be extended to include support for all available Deck.gl layers, ensuring the package becomes a comprehensive solution for Deck.gl and Maplibre users. Future layers to be added includeScatterplotLayer
,IconLayer
,BitmapLayer
, and many more.Testing
ArcLayer
andGeoJsonLayer
.