Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Missing resitrction prop on map #533

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
Loading
from
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
4 changes: 4 additions & 0 deletions 4 README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Fork updates
Missing prop - **restriction**

---
<p align="center">
<img src="resources/readme/fullstackreact-google-maps-tutorial.png" alt="Fullstack React Google Maps Tutorial" />
</p>
Expand Down
1 change: 1 addition & 0 deletions 1 index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export interface IMapProps extends google.maps.MapOptions {
onTilesloaded?: mapEventHandler
onTiltChanged?: mapEventHandler
onZoomChanged?: mapEventHandler
children?: React.ReactNode;
}

type markerEventHandler = (props?: IMarkerProps, marker?: google.maps.Marker, event?: any) => any
Expand Down
22 changes: 9 additions & 13 deletions 22 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-maps-react",
"version": "2.0.7",
"name": "@aloushek/google-maps-react",
"version": "1.0.5",
"description": "Google maps container",
"author": "Fullstack.io <us@fullstack.io>",
"license": "MIT",
Expand All @@ -19,10 +19,10 @@
"types": "dist/index.d.ts",
"sideEffects": false,
"scripts": {
"prepublish": "./scripts/prepublish.sh",
"preversion": ". ./scripts/prepublish.sh",
"dev": "NODE_ENV=development ./node_modules/hjs-webpack/bin/hjs-dev-server.js",
"build": "NODE_ENV=production webpack",
"prepublish": "C:/xampp/htdocs/projects/google-maps-react/scripts/prepublish.sh",
"preversion": "scripts/prepublish.sh",
"dev": "SET NODE_ENV=development ./node_modules/hjs-webpack/bin/hjs-dev-server.js",
"build": "SET NODE_ENV=production webpack",
"publish_pages": "gh-pages -d public/",
"lint": "eslint ./src",
"lintfix": "eslint ./src --fix",
Expand All @@ -32,7 +32,7 @@
},
"devDependencies": {
"@types/googlemaps": "^3",
"@types/react": "^15.0.0",
"@types/react": "^18.0.14",
"autoprefixer": "^6.3.6",
"babel-cli": "^6.26.0",
"babel-core": "^6.7.4",
Expand Down Expand Up @@ -68,19 +68,15 @@
"postcss-loader": "^0.9.1",
"precss": "^1.4.0",
"prop-types": "^15.5.10",
"react": "^15.0.0",
"react": "^18.2.0",
"react-addons-test-utils": "^15.0.0",
"react-dom": "^15.0.0",
"react-dom": "^18.2.0",
"react-github-fork-ribbon": "^0.5.1",
"react-router-dom": "^4.2.2",
"sinon": "^1.17.3",
"style-loader": "^0.13.1",
"url-loader": "^0.5.7",
"webpack": "^1.13.0"
},
"peerDependencies": {
"react": "~0.14.8 || ^15.0.0 || ^16.0.0 || ^17.0.0",
"react-dom": "~0.14.8 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {}
}
2 changes: 2 additions & 0 deletions 2 src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export class Map extends React.Component {
fullscreenControl: this.props.fullscreenControl,
scrollwheel: this.props.scrollwheel,
draggable: this.props.draggable,
restriction: this.props.restriction,
draggableCursor: this.props.draggableCursor,
keyboardShortcuts: this.props.keyboardShortcuts,
disableDoubleClickZoom: this.props.disableDoubleClickZoom,
Expand Down Expand Up @@ -291,6 +292,7 @@ Map.propTypes = {
scaleControl: PropTypes.bool,
streetViewControl: PropTypes.bool,
streetViewControlOptions: PropTypes.object,
restriction: PropTypes.object,
panControl: PropTypes.bool,
rotateControl: PropTypes.bool,
fullscreenControl: PropTypes.bool,
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.