Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Approximate Location "Puck" logic updates - #427

Merged
neelmistry94 merged 2 commits into
masterfrom
nm/privacy_fixes
Sep 10, 2020
Merged

neelmistry94 merged 2 commits into
masterfrom
nm/privacy_fixes

Conversation

@neelmistry94

@neelmistry94 neelmistry94 commented Sep 10, 2020 •

Copy link
Copy Markdown
Contributor

This alters the logic for how the approximate location puck is draw.

These changes allow the puck to be seen at an appropriate size at all zoom levels by doing the following:

  • Draws/creates the approximate ring before updating the ring
  • Passes zoom level when accounting ring size so it is relative to the current map's zoom level

@neelmistry94
neelmistry94 requested a review from a team September 10, 2020 18:14
@neelmistry94 neelmistry94 self-assigned this Sep 10, 2020

@fabian-guerra fabian-guerra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it possible to rollback files to Objc? I don't think we need Objc++ files (.mm)

@neelmistry94

Copy link
Copy Markdown
Contributor Author

Is it possible to rollback files to Objc? I don't think we need Objc++ files (.mm)

I worked with @julianrex on this. I believe there is a compiler error if we leave it as objc.

@fabian-guerra fabian-guerra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's one minor comment. Otherwise LGTM

@@ -1,6 +1,7 @@
#import "MGLFaux3DUserLocationAnnotationView.h"

#import "MGLMapView.h"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove this import.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we moved one function to map view private which is why we included it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Right. That's why you don't have to import MGLMapView.h when you have MGLMapView_Private.h

@neelmistry94 neelmistry94 Sep 10, 2020 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

gotcha, I can remove it

As I made the update, I processed what you meant. Good catch

@fabian-guerra

Copy link
Copy Markdown
Contributor

I've realized that the issue is due to the fact that in the map's private header we import a c++ header, this requires importing classes to switch to Objc++ even tho no C++ is used.

@captainbarbosa

Copy link
Copy Markdown
Contributor

@neelmistry94 can you please add an entry to the changelog as a follow-up PR?

@fabian-guerra

Copy link
Copy Markdown
Contributor

@captainbarbosa this doesn't require a changelog entry because its fixing an issue in an unreleased feature.

katydecorah pushed a commit that referenced this pull request Sep 11, 2020
* master:
  Approximate Location "Puck" logic updates (#427)
  Fix content insets when automaticallyAdjustsScrollViewInsets is set to NO (#420)
@julianrex julianrex mentioned this pull request Sep 14, 2020
6 tasks done
@knov knov added this to the v6.2.0-beta.2 milestone Sep 14, 2020
fabian-guerra pushed a commit that referenced this pull request Sep 14, 2020
* updates to approximate puck drawing logic

* removing unused header
@fabian-guerra fabian-guerra mentioned this pull request Sep 14, 2020
6 tasks done
fabian-guerra added a commit that referenced this pull request Sep 14, 2020
* changing the default size for approx ring border when zoomed out (#429)

* Approximate Location "Puck" logic updates (#427)

* updates to approximate puck drawing logic

* removing unused header

* Allow for transitive dependencies (#431)

* Fix content insets when automaticallyAdjustsScrollViewInsets is set to NO (#420)

* Fix an issue when automaticallyAdjustContentInset is set to NO

* Update tests to account for safe areas on iOS 11

* Update changelog

* Update method documentation

* Update to gl-native 5.0.0 (#438)

* Update to application state management and associated view setup and rendering (#432)

Co-authored-by: Neel Mistry <[email protected]>
Co-authored-by: Fredrik Karlsson <[email protected]>
Co-authored-by: Julian Rex <[email protected]>
mappy-mobile pushed a commit to Mappy/mapbox-gl-native-ios that referenced this pull request Sep 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants