Title: zoom Props causing typescript errors · Issue #511 · fullstackreact/google-maps-react · GitHub
Open Graph Title: zoom Props causing typescript errors · Issue #511 · fullstackreact/google-maps-react
X Title: zoom Props causing typescript errors · Issue #511 · fullstackreact/google-maps-react
Description: I am getting the following typescript error TS2769: No overload matches this call. Overload 1 of 2, '(props: IMapProps | Readonly
Open Graph Description: I am getting the following typescript error TS2769: No overload matches this call. Overload 1 of 2, '(props: IMapProps | Readonly
X Description: I am getting the following typescript error TS2769: No overload matches this call. Overload 1 of 2, '(props: IMapProps | Readonly<IMapProps>): Map', gave the following error. Type ...
Opengraph URL: https://github.com/fullstackreact/google-maps-react/issues/511
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"zoom Props causing typescript errors","articleBody":"I am getting the following typescript error\r\n\r\n````TS2769: No overload matches this call. Overload 1 of 2, '(props: IMapProps | Readonly\u003cIMapProps>): Map', gave the following error. Type '{ google: any; zoom: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes\u003cMap> & Readonly\u003cIMapProps> & Readonly\u003c{ children?: ReactNode; }>'. Property 'zoom' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes\u003cMap> & Readonly\u003cIMapProps> & Readonly\u003c{ children?: ReactNode; }>'. Overload 2 of 2, '(props: IMapProps, context: any): Map', gave the following error. Type '{ google: any; zoom: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes\u003cMap> & Readonly\u003cIMapProps> & Readonly\u003c{ children?: ReactNode; }>'. Property 'zoom' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes\u003cMap> & Readonly\u003cIMapProps> & Readonly\u003c{ children?: ReactNode; ````\r\n\r\nThe code\r\n````import React, { Component } from 'react'\r\nimport { Map, GoogleApiWrapper, GoogleAPI } from 'google-maps-react'\r\n\r\nexport class MapContainer extends Component\u003cGoogleAPI> {\r\n render() {\r\n if (!this.props.google) {\r\n return \u003cdiv>Loading...\u003c/div>\r\n }\r\n\r\n return (\r\n \u003cdiv\r\n style={{\r\n position: 'relative',\r\n height: 400,\r\n }}\r\n >\r\n \u003cMap google={this.props.google} zoom={1} />\r\n \u003c/div>\r\n )\r\n }\r\n}\r\nexport default GoogleApiWrapper({\r\n apiKey: '',\r\n})(MapContainer)````","author":{"url":"https://github.com/dahfool","@type":"Person","name":"dahfool"},"datePublished":"2021-04-27T11:06:11Z","url":"https://github.com/fullstackreact/google-maps-react/issues/511"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:43ea8c37-b6a6-07d4-d0af-9699acacb7fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 971E:1E9B9:B3B615:F2E78F:6AFE6A50 |
| html-safe-nonce | 9bcc8cf30c3a394e14383c5db83897955c30538032cb828f99e7a23e9a443ca5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzFFOjFFOUI5OkIzQjYxNTpGMkU3OEY6NkFGRTZBNTAiLCJ2aXNpdG9yX2lkIjoiMzI0MDM4MzcxNjU4NDc0NTU1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6b19bc7a6be003f4ab8a0169ecd0c9b46fa9a8ac627f79d2a95c1d052f86c30a |
| hovercard-subject-tag | issue:868735043 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/fullstackreact/google-maps-react/511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80125b916821111ebd33c63ca7beb859b55ef34cb566a880615c76c6a0db537b/fullstackreact/google-maps-react/issues/511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80125b916821111ebd33c63ca7beb859b55ef34cb566a880615c76c6a0db537b/fullstackreact/google-maps-react/issues/511 |
| og:image:alt | I am getting the following typescript error TS2769: No overload matches this call. Overload 1 of 2, '(props: IMapProps | Readonly |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dahfool |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/fullstackreact/google-maps-react git https://github.com/fullstackreact/google-maps-react.git |
| octolytics-dimension-user_id | 16674738 |
| octolytics-dimension-user_login | fullstackreact |
| octolytics-dimension-repository_id | 57070925 |
| octolytics-dimension-repository_nwo | fullstackreact/google-maps-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 57070925 |
| octolytics-dimension-repository_network_root_nwo | fullstackreact/google-maps-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width