Skip to content

Commit

Permalink
feat: replace fromPath method with fromAsset for bitmapdescriptors on…
Browse files Browse the repository at this point in the history
… android
  • Loading branch information
jokerttu committed Nov 19, 2024
1 parent 3d75d92 commit 007dfec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public Marker addMarker(Map<String, Object> optionsMap) {

MarkerOptions options = new MarkerOptions();
if (imagePath != null && !imagePath.isEmpty()) {
BitmapDescriptor icon = BitmapDescriptorFactory.fromPath(imagePath);
BitmapDescriptor icon = BitmapDescriptorFactory.fromAsset(imagePath);
options.icon(icon);
}

Expand Down Expand Up @@ -290,7 +290,7 @@ public GroundOverlay addGroundOverlay(Map<String, Object> map) {

GroundOverlayOptions options = new GroundOverlayOptions();
if (imagePath != null && !imagePath.isEmpty()) {
BitmapDescriptor bitmapDescriptor = BitmapDescriptorFactory.fromPath(imagePath);
BitmapDescriptor bitmapDescriptor = BitmapDescriptorFactory.fromAsset(imagePath);
options.image(bitmapDescriptor);
}
options.position(new LatLng(lat, lng), width, height);
Expand Down

0 comments on commit 007dfec

Please sign in to comment.