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

Cleanup: remove private header #95

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

michaelkirk
Copy link
Collaborator

Description

This header was copied in from MapLibre Native to expose a private
method.

Previously this got out of sync and caused a bug:
#53

Instead we can use the already public delegate method.

Note: The deleted header was importing Maplibre/Mapbox.h, but we are
using that elsewhere, so I moved that import up a level.

Open Tasks

Related:
maplibre/maplibre-native#2228
#53

Infos for Reviewer

There should be no change in behavior from this — just cleanup.

This header was copied in from MapLibre Native to expose a private
method.

Previously this got out of sync and caused a bug:
maplibre#53

Instead we can use the already public delegate method.

Note: The deleted header was importing Maplibre/Mapbox.h, but we are
using that elsewhere, so I moved that import up a level.
@michaelkirk michaelkirk force-pushed the mkirk/remove-private-header branch from ec993cc to 5aa57b5 Compare August 20, 2024 22:52
Copy link
Collaborator

@boldtrn boldtrn left a comment

Choose a reason for hiding this comment

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

Thanks for looking into this.

If you tested this and everything still works, I am fine with this change. Maybe we give for example @Patrick-Kladek and @hactar a chance to check as well, but other than that, I am fine with merging 👍

@brandub
Copy link

brandub commented Aug 21, 2024

I'm hoping this PR solves #60 as well any thoughts?

override open func mapViewDidFinishRenderingFrameFullyRendered(_ fullyRendered: Bool, frameEncodingTime: Double, frameRenderingTime: Double) {
super.mapViewDidFinishRenderingFrameFullyRendered(fullyRendered, frameEncodingTime: frameEncodingTime, frameRenderingTime: frameRenderingTime)

func updateCourseTrackingAfterDidFinishRenderingFrame() {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for removing the override and then calling this from elsewhere? For me the override function is more logical

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's so that we don't accidentally break the puck animation again, like what I fixed in #53.

I tried to explain the reasoning in this issue description — the method we were overriding was a private method. I patched it up in #53, but because it's still a private method it could break again. #53 has some more details which might be helpful for context.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, thanks for linking the PR, helps a lot to understand.

@hactar hactar merged commit 22b3107 into maplibre:main Sep 6, 2024
2 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.

5 participants