feat: add real WeatherV2 Android composite validation
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
This commit is contained in:
@@ -219,7 +219,7 @@ RasterArraySource::RasterArraySource(std::string id,
|
||||
std::string nextFixtureID,
|
||||
std::string nextMetadataURL,
|
||||
std::string nextFieldURL,
|
||||
std::vector<RasterArrayRuntimeFieldDescriptor> runtimeFields)
|
||||
std::vector<RasterArrayRuntimeFieldDescriptor> runtimeFieldDescriptors)
|
||||
: Source(makeMutable<Impl>(std::move(id),
|
||||
std::move(fixtureID),
|
||||
std::move(metadataURL),
|
||||
@@ -227,10 +227,10 @@ RasterArraySource::RasterArraySource(std::string id,
|
||||
std::move(nextFixtureID),
|
||||
std::move(nextMetadataURL),
|
||||
std::move(nextFieldURL),
|
||||
std::move(runtimeFields))) {}
|
||||
std::move(runtimeFieldDescriptors))) {}
|
||||
|
||||
RasterArraySource::RasterArraySource(std::string id, std::vector<RasterArrayLocalFieldDescriptor> localFields)
|
||||
: Source(makeMutable<Impl>(std::move(id), std::move(localFields))) {}
|
||||
RasterArraySource::RasterArraySource(std::string id, std::vector<RasterArrayLocalFieldDescriptor> localFieldDescriptors)
|
||||
: Source(makeMutable<Impl>(std::move(id), std::move(localFieldDescriptors))) {}
|
||||
|
||||
RasterArraySource::RasterArraySource(std::string id)
|
||||
: Source(makeMutable<Impl>(std::move(id))) {}
|
||||
@@ -786,7 +786,12 @@ bool RasterArraySource::controlRuntimeTimeline(const int command, const float va
|
||||
}
|
||||
|
||||
bool RasterArraySource::supportsLayerType(const LayerTypeInfo* info) const {
|
||||
return info && std::string(info->type) == "raster-particle";
|
||||
if (!info) return false;
|
||||
const std::string type{info->type};
|
||||
// Both displays consume the exact same canonical Source-owned snapshots.
|
||||
// WeatherColorLayer is intentionally a separate renderer, not a second
|
||||
// source, cache, timeline or field normalizer.
|
||||
return type == "raster-particle" || type == "weather-color";
|
||||
}
|
||||
|
||||
Mutable<Source::Impl> RasterArraySource::createMutable() const noexcept {
|
||||
|
||||
Reference in New Issue
Block a user