-
Notifications
You must be signed in to change notification settings - Fork 110
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
supporting fill-extrusion #211
Conversation
damn, did not expect that, would be a very nice improvent |
we need to wait until @m0nac0 gives you the approval for the ci process to run, then it will be reviewed and tested |
I saw it was running and the linter failed, I was looking for a log eheh |
to fix the formatting, we follow the official guidlines so just For info, your latest ci report is here if i'm not wrong https://github.com/m0nac0/flutter-maplibre-gl/actions/runs/4429707859. thanks for the work ! |
I see you added a test for it on the example app, very nice too |
Formatting done! thanks for the suggestion, it worked perfectly |
@mariusvn Did you review and test this? |
Hey! how is it going? do you have some time to review this? I believe I need to update the branch as it has some conflicts now.. :P |
Hey, sorry we missed your PR! If you can resolve the conflicts I'll be happy to review it. If you have trouble resolving the conflicts, let me know and I can take a look. |
Ok I'll resolve conflicts today ;) Thanks a lot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm: were the modifications to this file, to ios/Classes/LayerPropertyConverter.swift
and to lib/src/layer_properties.dart
generated with the script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hem... nope. which script? I added them manually.
EDIT: I didn't know anything about a script, and I didn't find any reference to it. if you tell me more, I can generate these modifications in the right way, sure :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oooh sorry I just reviewed it better and found it. scripts/lib/generate.dart
Let me check it better. back to you in a min
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I confirm you I added them manually. if you tell me how you run the generate.dart I will do the same way to be sure I keep consistency, instead of add them manually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to run the script with dart run .\scripts\lib\generate.dart
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems to add a few outdated comments though (referencing Mapbox instead of MapLibre)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this was a bit more complicated than I initially thought, I
- made some fixes to the script's input style
- added a README for the script
- ran the script and checked the output
- pushed those changes
I hope that's ok for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, the script wants to generate a parameter name of fill-extrusionLayer
for the iOS code, which is invalid. I pushed a new commit that hopefully fixes that.
@krupupakku If you want to take a look at the changes from my 3 commits together (excluding whitespace changes), you can do that here https://github.com/maplibre/flutter-maplibre-gl/pull/211/files/ff22c991fb02ffb2dc986bd0c2ac6fe24d126dbe..a6f86eb6d7a3586e7088959867af2f04e6d07eb7?diff=unified&w=1 Let me know if that looks good from your side. |
Oh marvellous! @m0nac0 thanks for taking care of if! LGTM! |
@m0nac0 I also confirm you that the script now works (before it was giving me an error trying running it), and looks wonderful! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you again for you contribution!
Thanks for implementing this!
|
🤔 super strange, I'm using it in my project and it's working in both android and iOS (i tried in simulator and physical device). |
@Robbendebiene Could you share your Flutter code for adding the fill extrusion layer? |
I'm sorry for the confusion. For testing I just copied a style that worked when loaded through URL without checking whether it uses the old or new (expression) syntax. Changing this:
to
solves the problem. One thing I noticed when trying to create a minimal reproducible example is that the flutter-maplibre-gl/lib/src/controller.dart Lines 1314 to 1318 in dc21739
|
Good catch! @krupupakku Was that intentional? If not, no worries, we can open an issue to add that. |
Nope, must me an error from my side :P but it's very strange because I'm using filter in my project and it's working ahah @m0nac0 let's open an issue as you said, I can take a better look later today or tomorrow ;) Thanks for noticing! @Robbendebiene |
Pull Request
Description
Hey! I needed to use extrusions in my project and I thought maybe you want to add support to them.
This is the result in example Layer page, adding controller.addFillExtrusionLayer:
![](https://user-images.githubusercontent.com/29118355/225405519-f6ae3d3d-8715-4b0c-a28a-1ebe70b5fe29.jpeg)