maps-core
maps-core copied to clipboard
Extension functions for VectorLayerFeatureInfoValue
This PR introduces some extension functions for the various types allowed as a value for the VectorLayerFeatureInfoValue
. With this change, the readability of the code using such features is vastly improved, as we can circumvent the problem of the Djinni-Wrapper not supporting default values.
Summary by CodeRabbit
-
New Features
- Enhanced map interaction by introducing new data type conversions for map features, improving the display of various data types on the map layers.
Walkthrough
The update introduces a series of Kotlin extension functions that transform various primitive types and collections into VectorLayerFeatureInfoValue
objects. These functions are tailored for different data types, ensuring that each can be easily converted to a format suitable for map layer features.
Changes
File Path | Change Summary |
---|---|
.../extensions/FeatureValueExtensions.kt |
Added public extension functions for converting primitives and collections to VectorLayerFeatureInfoValue . |
πβ¨ In the realm of code, where the data types roam, A rabbit hopped through, making a map feature home. With a hop and a skip, types transform with grace, Now every int, float, and string finds its place. πΊοΈπ
Tips
Chat with CodeRabbit Bot (@coderabbitai
)
- If you reply to a review comment from CodeRabbit, the bot will automatically respond.
- To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
- Note: Review comments are made on code diffs or files, not on the PR overview.
- Add
@coderabbitai ignore
anywhere in the PR description to prevent this PR from being reviewed.
CodeRabbit Commands (invoked as PR comments)
-
@coderabbitai pause
to pause the reviews on a PR. -
@coderabbitai resume
to resume the paused reviews. -
@coderabbitai review
to trigger a review. This is useful when automatic reviews are disabled for the repository. -
@coderabbitai resolve
resolve all the CodeRabbit review comments. -
@coderabbitai help
to get help.
Note: For conversation with the bot, please use the review comments on code diffs or files.
CodeRabbit Configration File (.coderabbit.yaml
)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yaml
file to the root of your repository. - The JSON schema for the configuration file is available here.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json