Skip to content

Conversation

@bolsinga
Copy link
Contributor

Issue/Motivation

  • This way if the MapView initializer should change, it will be a little more obvious for this client when re-building.

What issue is this PR targeting?
None

Tasklist

  • Include tests (if applicable) and examples (new or edits)
  • If there are any visual changes as a result, include before/after screenshots and/or videos
  • Add #fixes with the issue number that this PR addresses
  • Update any documentation for affected APIs
  • Update the CHANGELOG

- This way if the initializer should change, it will be a little more obvious for this client when re-building.
Copy link
Collaborator

@Archdoog Archdoog left a comment

Choose a reason for hiding this comment

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

This is definitely a little easier to follow 👍

bolsinga added a commit to bolsinga/swiftui-dsl that referenced this pull request Apr 25, 2025
- Typically in an application, there is one MNMapView. When using CarPlay, there are two. This helps debugging the scenario so that two views can be distinguished from each other when debugging.
- It sets the `UIView.tag` property of the `MLNMapView` to the enum's rawValue. It also exists in its enumerated type elsewhere.

Depends upon maplibre#80
Copy link
Collaborator

@ianthetechie ianthetechie left a comment

Choose a reason for hiding this comment

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

Good change; thanks!

@ianthetechie ianthetechie merged commit 9324755 into maplibre:main Apr 28, 2025
2 checks passed
ianthetechie added a commit that referenced this pull request Apr 28, 2025
* Use self.init instead of setting member variables directly.

- This way if the initializer should change, it will be a little more obvious for this client when re-building.

* Add MapActivity to track what MapView is being used for.

- Typically in an application, there is one MNMapView. When using CarPlay, there are two. This helps debugging the scenario so that two views can be distinguished from each other when debugging.
- It sets the `UIView.tag` property of the `MLNMapView` to the enum's rawValue. It also exists in its enumerated type elsewhere.

Depends upon #80

---------

Co-authored-by: Ian Wagner <[email protected]>
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