-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[google_maps_flutter_platform_interface] Add cameraControl enable/disable & position on web #9897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
auto-submit
merged 6 commits into
flutter:main
from
4rthurmonteiro:google_maps_flutter_platform_interface/camera_control
Aug 28, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8251ab0
feat: add cameraControl enablse/disable
4rthurmonteiro e919f3d
Update packages/google_maps_flutter/google_maps_flutter_platform_inte…
4rthurmonteiro a53dea0
chore: update docs
4rthurmonteiro d64b4d1
Merge branch 'main' into google_maps_flutter_platform_interface/camer…
4rthurmonteiro 2a11b3a
chore: add webCameraControlPosition test
4rthurmonteiro 77a5183
Merge branch 'main' into google_maps_flutter_platform_interface/camer…
4rthurmonteiro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
...ter/google_maps_flutter_platform_interface/lib/src/types/web_camera_control_position.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| // Copyright 2013 The Flutter Authors. All rights reserved. | ||
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| /// This setting controls how the API handles camera control button on the map. | ||
| /// | ||
| /// See https://developers.google.com/maps/documentation/javascript/reference/control#ControlPosition | ||
| /// for more details. | ||
| enum WebCameraControlPosition { | ||
| /// Equivalent to BOTTOM_CENTER in both LTR and RTL. | ||
| blockEndInlineCenter, | ||
|
|
||
| /// Equivalent to BOTTOM_LEFT in LTR, or BOTTOM_RIGHT in RTL. | ||
| blockEndInlineStart, | ||
|
|
||
| /// Equivalent to BOTTOM_RIGHT in LTR, or BOTTOM_LEFT in RTL. | ||
| blockEndInlineEnd, | ||
|
|
||
| /// Equivalent to TOP_CENTER in both LTR and RTL. | ||
| blockStartInlineCenter, | ||
|
|
||
| /// Equivalent to TOP_LEFT in LTR, or TOP_RIGHT in RTL. | ||
| blockStartInlineStart, | ||
|
|
||
| /// Equivalent to TOP_RIGHT in LTR, or TOP_LEFT in RTL. | ||
| blockStartInlineEnd, | ||
|
|
||
| /// Elements are positioned in the center of the bottom row. | ||
| /// | ||
| /// Consider using BLOCK_END_INLINE_CENTER instead. | ||
| bottomCenter, | ||
|
|
||
| /// Elements are positioned in the bottom left and flow towards the middle. | ||
stuartmorgan-g marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| /// | ||
| /// Elements are positioned to the right of the Google logo. | ||
| /// | ||
| /// Consider using BLOCK_END_INLINE_START instead. | ||
| bottomLeft, | ||
|
|
||
| /// Elements are positioned in the bottom right and flow towards the middle. | ||
stuartmorgan-g marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| /// | ||
| /// Elements are positioned to the left of the copyrights. | ||
| /// | ||
| /// Consider using BLOCK_END_INLINE_END instead. | ||
| bottomRight, | ||
|
|
||
| /// Equivalent to RIGHT_CENTER in LTR, or LEFT_CENTER in RTL. | ||
| inlineEndBlockCenter, | ||
|
|
||
| /// Equivalent to RIGHT_BOTTOM in LTR, or LEFT_BOTTOM in RTL. | ||
| inlineEndBlockEnd, | ||
|
|
||
| /// Equivalent to RIGHT_TOP in LTR, or LEFT_TOP in RTL. | ||
| inlineEndBlockStart, | ||
|
|
||
| /// Equivalent to LEFT_CENTER in LTR, or RIGHT_CENTER in RTL. | ||
| inlineStartBlockCenter, | ||
|
|
||
| /// Equivalent to LEFT_BOTTOM in LTR, or RIGHT_BOTTOM in RTL. | ||
| inlineStartBlockEnd, | ||
|
|
||
| /// Equivalent to LEFT_TOP in LTR, or RIGHT_TOP in RTL. | ||
| inlineStartBlockStart, | ||
|
|
||
| /// Elements are positioned on the left, above bottom-left elements, | ||
| /// and flow upwards. | ||
| /// | ||
| /// Consider using INLINE_START_BLOCK_END instead. | ||
| leftBottom, | ||
|
|
||
| /// Elements are positioned in the center of the left side. | ||
| /// Consider using INLINE_START_BLOCK_CENTER instead. | ||
| leftCenter, | ||
|
|
||
| /// Elements are positioned on the left, below top-left elements, | ||
| /// and flow downwards. | ||
| /// | ||
| /// Consider using INLINE_START_BLOCK_START instead. | ||
| leftTop, | ||
|
|
||
| /// Elements are positioned on the right, above bottom-right elements, | ||
| /// and flow upwards. | ||
| /// | ||
| /// Consider using INLINE_END_BLOCK_END instead. | ||
| rightBottom, | ||
|
|
||
| /// Elements are positioned in the center of the right side. | ||
| /// | ||
| /// Consider using INLINE_END_BLOCK_CENTER instead. | ||
| rightCenter, | ||
|
|
||
| /// Elements are positioned on the right, below top-right elements, | ||
| /// and flow downwards. | ||
| /// | ||
| /// Consider using INLINE_END_BLOCK_START instead. | ||
| rightTop, | ||
|
|
||
| /// Elements are positioned in the center of the top row. | ||
| /// | ||
| /// Consider using BLOCK_START_INLINE_CENTER instead. | ||
| topCenter, | ||
|
|
||
| /// Elements are positioned in the top left and flow towards the middle. | ||
| /// | ||
| /// Consider using BLOCK_START_INLINE_START instead. | ||
| topLeft, | ||
|
|
||
| /// Elements are positioned in the top right and flow towards the middle. | ||
| /// | ||
| /// Consider using BLOCK_START_INLINE_END instead. | ||
| topRight, | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.