Enable tile preloading by default for CartoOfflineVectorTileLayer
@@ -9,11 +9,13 @@ namespace carto {
CartoOfflineVectorTileLayer::CartoOfflineVectorTileLayer(const std::shared_ptr<CartoPackageManager>& packageManager, CartoBaseMapStyle::CartoBaseMapStyle style) :
CartoVectorTileLayer(std::make_shared<PackageManagerTileDataSource>(packageManager), style)
{
+ _preloading = true; // turn preloading on by default
}
CartoOfflineVectorTileLayer::CartoOfflineVectorTileLayer(const std::shared_ptr<CartoPackageManager>& packageManager, const std::shared_ptr<AssetPackage>& styleAssetPackage) :
CartoVectorTileLayer(std::make_shared<PackageManagerTileDataSource>(packageManager), styleAssetPackage)
{
+ _preloading = true; // turn preloading on by default
}
CartoOfflineVectorTileLayer::~CartoOfflineVectorTileLayer() {
