This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
[core] Reload geojson source on url change - #6770
Merged
Merged
Conversation
|
@ivovandongen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jfirebaugh, @kkaefer and @brunoabinader to be potential reviewers. |
ivovandongen
force-pushed
the
6757-geojson-url-mutability
branch
from
October 20, 2016 12:10
bcadf23 to
a295d1d
Compare
ivovandongen
force-pushed
the
6757-geojson-url-mutability
branch
from
October 20, 2016 12:43
a295d1d to
35e6e41
Compare
jfirebaugh
reviewed
Oct 20, 2016
|
|
||
| loaded = true; | ||
| observer->onSourceLoaded(base); | ||
| req.reset(); |
Contributor
There was a problem hiding this comment.
What's the rationale for this change?
Contributor
Author
Contributor
There was a problem hiding this comment.
Yeah, it should be done in setURL. Resetting here will disable automatic refreshes based on the caching headers, which is necessary to support things like traffic layers.
| void Style::onSourceDescriptionChanged(Source& source) { | ||
| observer->onSourceDescriptionChanged(source); | ||
| if (!source.baseImpl->loaded) { | ||
| source.baseImpl->loadDescription(fileSource); |
| source.baseImpl->setObserver(&test.observer); | ||
|
|
||
| //Load initial, so the source state will be loaded=true | ||
| source.baseImpl->loadDescription(test.fileSource); |
Closed
Contributor
Author
|
@jfirebaugh Made the formatting changes in #6783. Let me know if changes are needed for #6770 (comment) as well. |
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #6757
Review @tmpsantos / @brunoabinader ?