Skip to content

Commit 16eb04a

Browse files
committed
Add gesture preference feature and tabbed examples to Google Maps widget docs
1 parent 1f1b66d commit 16eb04a

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tags: [Google Maps, Widget, Integration]
66
sidebar_position: 2
77
keywords: [FlutterFlow, Google Maps, Widget, Integration]
88
---
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
# Google Maps Widget
1113

@@ -155,6 +157,66 @@ the Map**.
155157
<div class="video-container"><iframe src="https://www.loom.
156158
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>
157159

160+
#### Map Takes Gesture Preference
161+
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.
162+
163+
<Tabs>
164+
<TabItem value="1" label="Map Takes Gesture Preference = Disabled" default>
165+
<div style={{
166+
position: 'relative',
167+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
168+
height: 0,
169+
width: '100%'}}>
170+
<iframe
171+
src="https://demo.arcade.software/JC6AnbIQpfSPfENrbd6s?embed&show_copy_link=true"
172+
title=""
173+
style={{
174+
position: 'absolute',
175+
top: 0,
176+
left: 0,
177+
width: '100%',
178+
height: '100%',
179+
colorScheme: 'light'
180+
}}
181+
frameborder="0"
182+
loading="lazy"
183+
webkitAllowFullScreen
184+
mozAllowFullScreen
185+
allowFullScreen
186+
allow="clipboard-write">
187+
</iframe>
188+
</div>
189+
<p></p>
190+
</TabItem>
191+
<TabItem value="2" label="Map Takes Gesture Preference = Enabled">
192+
<div style={{
193+
position: 'relative',
194+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
195+
height: 0,
196+
width: '100%'}}>
197+
<iframe
198+
src="https://demo.arcade.software/m5EdLhn4tlkjfRhhquqg?embed&show_copy_link=true"
199+
title=""
200+
style={{
201+
position: 'absolute',
202+
top: 0,
203+
left: 0,
204+
width: '100%',
205+
height: '100%',
206+
colorScheme: 'light'
207+
}}
208+
frameborder="0"
209+
loading="lazy"
210+
webkitAllowFullScreen
211+
mozAllowFullScreen
212+
allowFullScreen
213+
allow="clipboard-write">
214+
</iframe>
215+
</div>
216+
<p></p>
217+
</TabItem>
218+
</Tabs>
219+
158220
### Show User Location
159221

160222
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)