Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.18.9

* Adds support for `onMapLoaded` callback.

## 2.18.8

* Bumps com.google.maps.android:android-maps-utils from 3.6.0 to 3.19.1.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class GoogleMapController
ClusterManager.OnClusterItemClickListener<MarkerBuilder>,
ClusterManagersController.OnClusterItemRendered<MarkerBuilder>,
DefaultLifecycleObserver,
GoogleMap.OnMapLoadedCallback,
GoogleMapListener,
GoogleMapOptionsSink,
MapsApi,
Expand Down Expand Up @@ -239,6 +240,7 @@ public void onMapReady(@NonNull GoogleMap googleMap) {
updateMapStyle(initialMapStyle);
initialMapStyle = null;
}
googleMap.setOnMapLoadedCallback(this);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only ever results in one callback. Is that the desired behavior? Does it match the implementation on the other platforms?

}

// Returns the first TextureView found in the view hierarchy.
Expand Down Expand Up @@ -343,6 +345,11 @@ public void onCameraIdle() {
flutterApi.onCameraIdle(new NoOpVoidResult());
}

@Override
public void onMapLoaded() {
flutterApi.onMapLoaded(new NoOpVoidResult());
}

@Override
public boolean onMarkerClick(Marker marker) {
return markersController.onMapsMarkerTap(marker.getId());
Expand Down
Loading