This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Make source ownership consistent and make MGLGeoJSONSource's content properties mutable #6793
Merged
Commits on Oct 26, 2016
-
[wip] Make source not lazy for geojson source
Use common initialization logic to create an unique pointer to an mbgl source object, up front, when a MGL source is created. Keep a raw pointer to the unique pointer that is pointed at the mbgl source instance when a MGL source is created or when a MGL source is obtained by identifier from MGLStyle. Once the transfer of ownership of the mbgl source takes place, the unique ptr is null. The raw pointer can be used, internally, for future work that involves mutating the source.
Configuration menu - View commit details
-
Copy full SHA for 1b34cf7 - Browse repository at this point
Copy the full SHA 1b34cf7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37c8b9f - Browse repository at this point
Copy the full SHA 37c8b9fView commit details -
[ios, macos] Make GeoJSON source data and url mutable
URL example does not work as of this commit since a change in core still needs to happen to trigger an update.
Configuration menu - View commit details
-
Copy full SHA for 517524c - Browse repository at this point
Copy the full SHA 517524cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d460b78 - Browse repository at this point
Copy the full SHA d460b78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ec9d6a - Browse repository at this point
Copy the full SHA 4ec9d6aView commit details -
This fixes a bad name for the raw source getter. Also changes the "set features" example to illustrate how an MGLSource can proxy to the mbgl source even after it has been added (using raw source)
Configuration menu - View commit details
-
Copy full SHA for 1dc68b5 - Browse repository at this point
Copy the full SHA 1dc68b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f447a4 - Browse repository at this point
Copy the full SHA 1f447a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3376545 - Browse repository at this point
Copy the full SHA 3376545View commit details -
[ios, macos] Refactor GeoJSON source point to raw source in category
Refactor to use covariant for raw source pointer.
Configuration menu - View commit details
-
Copy full SHA for ab8075a - Browse repository at this point
Copy the full SHA ab8075aView commit details -
[ios, macos] Nil raw source when removing source
This explicitly sets the rawSource of an MGL source object to NULL if the source is removed. Later on, if the MGL source is modified, the main / pending source is recreated and the changes are captured. If the source is later added back to the map it works just as if it were a newly initialized source. This avoids having to do add checks to validate that the source object is in the correct state before a mutation attempt takes place.
Configuration menu - View commit details
-
Copy full SHA for 65f7915 - Browse repository at this point
Copy the full SHA 65f7915View commit details -
Configuration menu - View commit details
-
Copy full SHA for d384f44 - Browse repository at this point
Copy the full SHA d384f44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c27bb8 - Browse repository at this point
Copy the full SHA 4c27bb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c7a900 - Browse repository at this point
Copy the full SHA 3c7a900View commit details -
[ios, macos] Nil out features if GeoJSON source is set with a URL
If a GeoJSON source is initially set with features or data and then later on reset with a URL, features must be set to nil. This avoids a situation where features from a previously loaded GeoJSON source that no longer represent the current URL's features are still pointed to. When a URL is used to load the source, the features are unknown until the data is loaded (possibly over the wire) and since there is no public observer or callback API at the mbgl level, it is impossible to know when the source data is available to be converted to MGL features.
Configuration menu - View commit details
-
Copy full SHA for 530f0a9 - Browse repository at this point
Copy the full SHA 530f0a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19dc2cb - Browse repository at this point
Copy the full SHA 19dc2cbView commit details
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.