Skip to content

Commit

Permalink
Use new cache table name in examples and tutorials to avoid conflict …
Browse files Browse the repository at this point in the history
…with old incompatible data.
  • Loading branch information
ComBatVision committed Dec 22, 2023
1 parent 626f2e1 commit 511c501
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The globe uses the default navigation gestures:
globeLayout.addView(wwd)

// Define cache content manager
val contentManager = GpkgContentManager(File(cacheDir, "cache.gpkg").absolutePath)
val contentManager = GpkgContentManager(File(cacheDir, "content.gpkg").absolutePath)

// Setting up the WorldWindow's layers.
wwd.engine.layers.apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h2>Get Started</h2>
// Create the WorldWindow (a GLSurfaceView) which displays the globe.
wwd = WorldWindow(requireContext())
// Define cache content manager
val contentManager = GpkgContentManager(File(requireContext().cacheDir, "cache.gpkg").absolutePath)
val contentManager = GpkgContentManager(File(requireContext().cacheDir, "content.gpkg").absolutePath)
// Setting up the WorldWindow's layers.
wwd.engine.layers.apply {
addLayer(BackgroundLayer())
Expand Down Expand Up @@ -78,13 +78,13 @@ <h3>BasicGlobeFragment.kt</h3>
wwd.engine.layers.apply {
addLayer(BackgroundLayer())
addLayer(GoogleLayer(GoogleLayer.Type.SATELLITE).apply {
configureCache(File(requireContext().cacheDir, "cache.gpkg").absolutePath, "GSat")
configureCache(File(requireContext().cacheDir, "content.gpkg").absolutePath, "GSat")
})
addLayer(AtmosphereLayer())
}
// Setting up the WorldWindow's elevation coverages.
wwd.engine.globe.elevationModel.addCoverage(BasicElevationCoverage().apply {
configureCache(File(requireContext().cacheDir, "cache.gpkg").absolutePath, "NASADEM")
configureCache(File(requireContext().cacheDir, "content.gpkg").absolutePath, "NASADEM")
})
return wwd
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ open class BasicGlobeFragment: Fragment() {
// Create the WorldWindow (a GLSurfaceView) which displays the globe.
wwd = WorldWindow(requireContext())
// Define cache content manager
val contentManager = GpkgContentManager(File(requireContext().cacheDir, "cache.gpkg").absolutePath)
val contentManager = GpkgContentManager(File(requireContext().cacheDir, "content.gpkg").absolutePath)
// Setting up the WorldWindow's layers.
wwd.engine.layers.apply {
addLayer(BackgroundLayer())
Expand Down

0 comments on commit 511c501

Please sign in to comment.