This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
Make source ownership consistent and make MGLGeoJSONSource's content properties mutable #6793
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1b34cf7
[wip] Make source not lazy for geojson source
boundsj 37c8b9f
[ios] Fix broken tests
boundsj 517524c
[ios, macos] Make GeoJSON source data and url mutable
boundsj d460b78
Use rawSource pointer
boundsj 4ec9d6a
[ios, macos] Make GeoJSON source features mutable
boundsj 1dc68b5
Fix getter typo
boundsj 1f447a4
Fix bad merge in iosapp and geojson source tests
boundsj 3376545
Remove calls to get source from map's style
boundsj ab8075a
[ios, macos] Refactor GeoJSON source point to raw source in category
boundsj 65f7915
[ios, macos] Nil raw source when removing source
boundsj d384f44
[ios, macos] Rename and document the internal mbgl source pointers
boundsj 4c27bb8
[ios, macos] Refactor vector source to use non lazy mbgl source
boundsj 3c7a900
[ios, macos] Refactor raster source to use non lazy mbgl source
boundsj 530f0a9
[ios, macos] Nil out features if GeoJSON source is set with a URL
boundsj 19dc2cb
[ios, macos] Refactor pending source
boundsj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
-[MGLSource initWithIdentifier:]should implement a private-commonInitstub so that-[MGLSource initWithIdentifier:]should call it and consolidate all these disparate calls. Each MGLSource subclass can still override the method to do things specific to the particular kind ofmbgl::style::Sourceit’s working with.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 would be a nice refactor. However,
commonInitrelies on having properties likeURLandgeoJSONDataandfeaturesset before it runs. IfMGLSource'sinitWithIdentifier:callscommonInitbefore the subclass init can set the requisite properties, then unexpected results will occur. I can imagine some ways to work around this but I think the disparate calls may actually be the best way to go, for now.