Skip to content

Commit

Permalink
Apply bounding sector for WebImageLayers from GPKG content.
Browse files Browse the repository at this point in the history
  • Loading branch information
ComBatVision committed Jun 16, 2024
1 parent 6a07ecd commit 86c5708
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repositories {
}
dependencies {
implementation 'earth.worldwind:worldwind:1.5.12'
implementation 'earth.worldwind:worldwind:1.5.14'
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildscript {

allprojects {
group = "earth.worldwind"
version = "1.5.12"
version = "1.5.14"

extra.apply {
set("minSdk", 21)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class GpkgContentManager(val pathName: String, val isReadOnly: Boolean = false):

else -> null // It is not a known Web Layer type
}?.apply {
// Apply bounding sector from content
tiledSurfaceImage?.levelSet?.sector?.copy(config.sector)
// Configure cache for Web Layer
tiledSurfaceImage?.cacheTileFactory = GpkgTileFactory(geoPackage, content, service.outputFormat)
}
Expand Down

0 comments on commit 86c5708

Please sign in to comment.