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

feat: add allow-overlap for symbols #507

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nilsmagnus
Copy link

@nilsmagnus nilsmagnus commented Sep 24, 2024

Hi, i think this adds support for a symbol-options: icon-allow-overlap, icon-optional and icon-ignore-placement.

I am not sure i have gotten all these correct, so if someone could verify I would appreciate it. Thanks 🙏

@nilsmagnus nilsmagnus changed the title Add allow-overlap for symbols feat: add allow-overlap for symbols Sep 24, 2024
addIfPresent('icon-ignore-placement', iconIgnorePlacement);
addIfPresent('icon-optional', iconOptional);
addIfPresent('icon-rotation-alignment', iconRotationAlignment);
addIfPresent('icon-size', iconSize);
addIfPresent('icon-allow-overlap', iconAllowOverlap);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look like you needed to change this file — all properties were already there.

@@ -13,7 +13,6 @@ dependencies:
sdk: flutter
maplibre_gl_platform_interface: ^0.20.0
maplibre_gl_web: ^0.20.0

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert.

@@ -165,6 +174,10 @@ class SymbolOptions {
}
}

addIfPresent('iconOptional', iconOptional);
addIfPresent('iconIgnorePlacement', iconIgnorePlacement);
addIfPresent('iconOptional', iconOptional);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate line.

dependencies:
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter
image: ^4.0.17
js: ">=0.6.7 <0.8.0"
maplibre_gl_platform_interface: ^0.20.0
maplibre_gl_platform_interface:
path: ../maplibre_gl_platform_interface
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing this file doesn't seem in scope for the PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The project uses melos to orchestrate its packages.

dart pub global activate melos
melos bootstrap

This will resolve the dependencies so that no changes to pubspec.yaml are necessary.

@josxha josxha added this to the v0.20.1 milestone Oct 3, 2024
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