Skip to content

Commit

Permalink
Address review comments from @Traumane
Browse files Browse the repository at this point in the history
  • Loading branch information
minnerbe committed Nov 27, 2023
1 parent b116c97 commit 03063c9
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ public CoordinateTransformList<CoordinateTransform> getPostMatchingTransformList
/**
* Get the path to the image file for this tile spec.
*
* @return path to image file or null if this tile spec does not have a mask.
* @return path to image file or null if this tile spec does not have an image.
*/
@JsonIgnore
public String getImagePath() {
Expand All @@ -912,12 +912,11 @@ public String getMaskPath() {
/**
* Get the URL to the image file for this tile spec.
*
* @return URL to image file or null if this tile spec does not have a mask.
* @return URL to image file or null if this tile spec does not have an image.
*/
public String getTileImageUrl() {
final Map.Entry<Integer, ImageAndMask> mipmapEntry = this.getFirstMipmapEntry();
final ImageAndMask imageAndMask = mipmapEntry.getValue();
return imageAndMask.getImageUrl();
final ImageAndMask imageAndMask = this.getFirstMipmapEntry().getValue();
return imageAndMask.hasImage() ? imageAndMask.getImageUrl() : null;
}

@Override
Expand Down

0 comments on commit 03063c9

Please sign in to comment.