Skip to content

[google_maps_flutter_web] Add missing MapOptions parameters #104111

@sperochon

Description

@sperochon

Use case

On Flutter WEB, I would like to be able to enable/disable (via GoogleMap constructor params or whatever) those MapOptions parameters:
mapTypeControl
fullscreenControl
streetViewControl

that display additional buttons onto the Map.
image

Proposal

In the code of the package it is written (more than 15 months ago):

  // These don't have any rawOptions entry, but they seem to be off in the native maps.
  options.mapTypeControl = false;
  options.fullscreenControl = false;
  options.streetViewControl = false;

I have switched them all to "true" and it is working fine (= enables all the buttons and gives the previous screenshot). I tried each button and everything is working fine. So, it seems that the comment in the code is not true anymore.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: parityWorks on one platform but not anotherc: proposalA detailed proposal for a change to Flutterhas partial patchThere is a PR awaiting someone to take it across the finish linep: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions