flutter / flutter/flutter

[google_maps_flutter][web] Support clickableIcons flag

Open
#161,426 2 comments 0 reactions 0 assignees View on GitHub
c: new feature c: proposal p: maps P3 package platform-web team-web triaged-web
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Use case

As a developer I want to hide the default info window which appears when clicking on a POI

Screenshot 2025-01-10 at 15 13 38

### Proposal

While going through the source files of google_maps_flutter_web I can see that the extension type MapOptions includes this boolean clickableIcons which is used by the JS API for the purpose of hiding this info windows.

```dart
extension type MapOptions._(JSObject _) implements JSObject {
external MapOptions({
String? backgroundColor,
bool? cameraControl,
CameraControlOptions? cameraControlOptions,
LatLngOrLatLngLiteral? center,
bool? clickableIcons,
JSAny? /*(ColorScheme|string)?*/ colorScheme,
num? controlSize,
bool? disableDefaultUI,
bool? disableDoubleClickZoom, ...) }
```

But there is no way to set this option via the GoogleMap widget. I think it would be nice to have an extra variable for this purpose. Something like:

```dart
GoogleMap(clickableIcons: false, ...)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.