Skip to content
Merged
Changes from all 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
16 changes: 16 additions & 0 deletions ios/core/GoogleMapProvider.mm
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ @implementation GoogleMapProvider {
GMSMapView *_mapView;
BOOL _isMapReady;
BOOL _isDragging;
BOOL _didRenderTiles;
LuggMapViewTheme _theme;
UIEdgeInsets _edgeInsets;
NSMutableArray<LuggMarkerView *> *_pendingMarkerViews;
Expand Down Expand Up @@ -455,6 +456,21 @@ - (void)mapView:(GMSMapView *)mapView
gesture:wasDragging];
}

// The SDK can drop marker icons set before any map in the process has finished
// rendering, as on a cold start straight into a screen with markers. Set them
// again once this map first renders.
- (void)mapViewDidFinishTileRendering:(GMSMapView *)mapView {
if (_didRenderTiles)
return;
_didRenderTiles = YES;
for (GMSMarker *marker in _markerToViewMap) {
LuggMarkerView *markerView = [_markerToViewMap objectForKey:marker];
if (markerView) {
[self applyMarkerStyle:markerView marker:(GMSAdvancedMarker *)marker];
}
}
}

- (void)mapView:(GMSMapView *)mapView
didTapAtCoordinate:(CLLocationCoordinate2D)coordinate {
[self dismissNonBubbledCallout];
Expand Down
Loading