mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Clean up map controls
This commit is contained in:
parent
ac093bf89e
commit
61de75d68b
1 changed files with 12 additions and 1 deletions
|
|
@ -34,6 +34,11 @@ const DynamicGoogleMap = withGoogleMap(props => {
|
|||
|
||||
const circle = <Circle {...circleProps} />;
|
||||
|
||||
const controlPosition =
|
||||
typeof window !== 'undefined' && typeof window.google !== 'undefined'
|
||||
? window.google.maps.ControlPosition.LEFT_TOP
|
||||
: 5;
|
||||
|
||||
return (
|
||||
<GoogleMap
|
||||
defaultZoom={zoom}
|
||||
|
|
@ -45,7 +50,13 @@ const DynamicGoogleMap = withGoogleMap(props => {
|
|||
// Disable zooming by scrolling
|
||||
scrollwheel: false,
|
||||
// Fullscreen control toggle
|
||||
fullscreenControl: true,
|
||||
fullscreenControl: false,
|
||||
// Street View control
|
||||
streetViewControl: false,
|
||||
// Zoom control position
|
||||
zoomControlOptions: {
|
||||
position: controlPosition,
|
||||
},
|
||||
}}
|
||||
>
|
||||
{coordinatesConfig.fuzzy ? circle : marker}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue