Skip to content

Commit 25b853e

Browse files
authored
Merge pull request #393 from FlutterFlow/feature/maps-gesture-preference
Google Maps Takes Gesture Preference
2 parents 1f1b66d + 5722adb commit 25b853e

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

docs/ff-integrations/maps/google-maps/google-maps-widget.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ description: Learn how to add and configure the Google Maps widget in your Flutt
55
tags: [Google Maps, Widget, Integration]
66
sidebar_position: 2
77
keywords: [FlutterFlow, Google Maps, Widget, Integration]
8+
toc_max_heading_level: 4
89
---
10+
import Tabs from '@theme/Tabs';
11+
import TabItem from '@theme/TabItem';
912

1013
# Google Maps Widget
1114

@@ -155,6 +158,70 @@ the Map**.
155158
<div class="video-container"><iframe src="https://www.loom.
156159
com/embed/1b06bfc1365f4fc68f15089d4f84d798?sid=ff33ea94-cd7f-4b4e-822e-6fe0743dbd27" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>
157160

161+
#### Map Takes Gesture Preference
162+
When this is turned on, any gestures, such as zooming or dragging, will only affect the map, not the rest of the page. This is helpful if your map is inside a scrollable page, so users can interact with the map without accidentally scrolling the whole page.
163+
164+
:::info
165+
This setting is only available if **Allow Interacting** and **Allow Zooming** are turned on.
166+
:::
167+
168+
<Tabs>
169+
<TabItem value="1" label="Map Takes Gesture Preference (Disabled)" default>
170+
<div style={{
171+
position: 'relative',
172+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
173+
height: 0,
174+
width: '100%'}}>
175+
<iframe
176+
src="https://demo.arcade.software/JC6AnbIQpfSPfENrbd6s?embed&show_copy_link=true"
177+
title=""
178+
style={{
179+
position: 'absolute',
180+
top: 0,
181+
left: 0,
182+
width: '100%',
183+
height: '100%',
184+
colorScheme: 'light'
185+
}}
186+
frameborder="0"
187+
loading="lazy"
188+
webkitAllowFullScreen
189+
mozAllowFullScreen
190+
allowFullScreen
191+
allow="clipboard-write">
192+
</iframe>
193+
</div>
194+
<p></p>
195+
</TabItem>
196+
<TabItem value="2" label="Map Takes Gesture Preference (Enabled)">
197+
<div style={{
198+
position: 'relative',
199+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
200+
height: 0,
201+
width: '100%'}}>
202+
<iframe
203+
src="https://demo.arcade.software/m5EdLhn4tlkjfRhhquqg?embed&show_copy_link=true"
204+
title=""
205+
style={{
206+
position: 'absolute',
207+
top: 0,
208+
left: 0,
209+
width: '100%',
210+
height: '100%',
211+
colorScheme: 'light'
212+
}}
213+
frameborder="0"
214+
loading="lazy"
215+
webkitAllowFullScreen
216+
mozAllowFullScreen
217+
allowFullScreen
218+
allow="clipboard-write">
219+
</iframe>
220+
</div>
221+
<p></p>
222+
</TabItem>
223+
</Tabs>
224+
158225
### Show User Location
159226

160227
When enabled, a blue dot appears on the map to indicate the user's current location. If the map is

0 commit comments

Comments
 (0)