Skip to content

Commit

Permalink
Fixed typo in CapacitorGoogleMap.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
yiannis-spyridakis authored Oct 9, 2024
1 parent 15b0dac commit 970a624
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -797,12 +797,12 @@ class CapacitorGoogleMap(
stream = ByteArrayInputStream(decodedBytes)

}
elseif (marker.iconUrl!!.startsWith("https:")) {
else if (marker.iconUrl!!.startsWith("https:")) {
stream = URL(marker.iconUrl).openConnection().getInputStream()
} else {
stream = this.delegate.context.assets.open("public/${marker.iconUrl}")
}
var bitmap = BitmapFactory.decodeStream(stream)
val bitmap = BitmapFactory.decodeStream(stream)
this.markerIcons[marker.iconUrl!!] = bitmap
markerOptions.icon(getResizedIcon(bitmap, marker))
} catch (e: Exception) {
Expand Down

0 comments on commit 970a624

Please sign in to comment.