[core] Remove RapidJSON and GeoJSONVT dependencies from SourceInfo

It's going to be exposed in the public core API as part of #3374.
This commit is contained in:
John Firebaugh
2015-12-23 14:37:25 -08:00
parent c972a251da
commit d238e00d9b
5 changed files with 127 additions and 132 deletions

View File

@@ -112,7 +112,7 @@ bool StyleParser::parseVectorSource(Source& source, const JSValue& sourceVal) {
} else {
// ...or the TileJSON directly.
source.info.parseTileJSONProperties(sourceVal);
source.parseTileJSON(sourceVal);
}
return true;
@@ -149,7 +149,7 @@ bool StyleParser::parseRasterSource(Source& source, const JSValue& sourceVal) {
} else {
// ...or the TileJSON directly.
source.info.parseTileJSONProperties(sourceVal);
source.parseTileJSON(sourceVal);
}
return true;
@@ -167,7 +167,7 @@ bool StyleParser::parseGeoJSONSource(Source& source, const JSValue& sourceVal) {
source.info.url = { dataVal.GetString(), dataVal.GetStringLength() };
} else if (dataVal.IsObject()) {
// We need to parse dataVal as a GeoJSON object
source.info.parseGeoJSON(dataVal);
source.parseGeoJSON(dataVal);
} else {
Log::Error(Event::ParseStyle, "GeoJSON data must be a URL or an object");
return false;