Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Support for Restricting Map Bounds via restriction prop
  • Loading branch information
Angelo Michel
Angelo Michel committed Jan 18, 2023
commit 13ff265faf18e589043534992ef2f5afbd9fc27e
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface IMapProps extends google.maps.MapOptions {
centerAroundCurrentLocation?: boolean
initialCenter?: google.maps.LatLngLiteral
center?: google.maps.LatLngLiteral
restriction?: google.maps.MapRestriction
zoom?: number

zoomControl?: boolean
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export class Map extends React.Component {
streetViewControlOptions: this.props.streetViewControlOptions,
panControl: this.props.panControl,
rotateControl: this.props.rotateControl,
restriction: this.props.restriction,
fullscreenControl: this.props.fullscreenControl,
scrollwheel: this.props.scrollwheel,
draggable: this.props.draggable,
Expand Down