René's URL Explorer Experiment


Title: I was not able to get onClick event on Marker · Issue #512 · fullstackreact/google-maps-react · GitHub

Open Graph Title: I was not able to get onClick event on Marker · Issue #512 · fullstackreact/google-maps-react

X Title: I was not able to get onClick event on Marker · Issue #512 · fullstackreact/google-maps-react

Description: I was tried to get the onClick event on the marker but I'm not able to get that. I was going through the document also I was created the static position and marker still it's not getting it. can someone help me? `import { Map, InfoWindow...

Open Graph Description: I was tried to get the onClick event on the marker but I'm not able to get that. I was going through the document also I was created the static position and marker still it's not getting it. can so...

X Description: I was tried to get the onClick event on the marker but I'm not able to get that. I was going through the document also I was created the static position and marker still it's not getting it...

Opengraph URL: https://github.com/fullstackreact/google-maps-react/issues/512

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"I was not able to get onClick event on Marker","articleBody":"I was tried to get the onClick event on the marker but I'm not able to get that. I was going through the document also I was created the static position and marker still it's not getting it. can someone help me?\r\n`import { Map, InfoWindow, Marker, GoogleApiWrapper } from \"google-maps-react\";\r\nimport React, { Component } from \"react\";\r\n\r\n```\r\nclass WithMarkers extends Component {\r\n  state = {\r\n    activeMarker: {},\r\n    selectedPlace: {},\r\n    showingInfoWindow: false\r\n  };\r\n\r\n  onMarkerClick = (props, marker) =>\r\n    this.setState(\r\n      {\r\n        activeMarker: marker,\r\n        selectedPlace: props,\r\n        showingInfoWindow: true\r\n      },\r\n      () => {\r\n        console.log(\"Click on marker\");\r\n      }\r\n    );\r\n\r\n  onInfoWindowClose = () =>\r\n    this.setState({\r\n      activeMarker: null,\r\n      showingInfoWindow: false\r\n    });\r\n\r\n  onMapClicked = () => {\r\n    if (this.state.showingInfoWindow)\r\n      this.setState({\r\n        activeMarker: null,\r\n        showingInfoWindow: false\r\n      });\r\n  };\r\n\r\n  render() {\r\n    if (!this.props.loaded) return \u003cdiv>Loading...\u003c/div>;\r\n\r\n    return (\r\n      \u003cMap\r\n        className=\"map\"\r\n        google={this.props.google}\r\n        onClick={this.onMapClicked}\r\n        style={{ height: \"100%\", position: \"relative\", width: \"100%\" }}\r\n        zoom={14}\r\n      >\r\n        \u003cMarker\r\n          name=\"SOMA\"\r\n          onClick={this.onMarkerClick}\r\n          position={{ lat: 37.778519, lng: -122.40564 }}\r\n        />\r\n\r\n        \u003cMarker\r\n          name=\"Dolores park\"\r\n          onClick={this.onMarkerClick}\r\n          position={{ lat: 37.759703, lng: -122.428093 }}\r\n        />\r\n\r\n        \u003cMarker name=\"Current location\" onClick={this.onMarkerClick} />\r\n\r\n        \u003cInfoWindow\r\n          marker={this.state.activeMarker}\r\n          onClose={this.onInfoWindowClose}\r\n          visible={this.state.showingInfoWindow}\r\n        >\r\n          \u003cdiv>\r\n            \u003ch1>{this.state.selectedPlace.name}\u003c/h1>\r\n          \u003c/div>\r\n        \u003c/InfoWindow>\r\n\r\n        \u003cInfoWindow position={{ lat: 37.765703, lng: -122.42564 }} visible>\r\n          \u003csmall>\r\n            Click on any of the markers to display an additional info.\r\n          \u003c/small>\r\n        \u003c/InfoWindow>\r\n      \u003c/Map>\r\n    );\r\n  }\r\n}\r\n// export default WithMarkers;\r\nexport default GoogleApiWrapper({\r\n  apiKey: \"KEY\"\r\n})(WithMarkers);\r\n\r\n```\r\n","author":{"url":"https://github.com/abhijeetnavgire158","@type":"Person","name":"abhijeetnavgire158"},"datePublished":"2021-04-29T12:25:27Z","url":"https://github.com/fullstackreact/google-maps-react/issues/512"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e65ba667-2376-c6fc-7033-667f937e72f3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAD08:61466:753664:9F8C82:6AFE6A6A
html-safe-nonce7edc40836c508d6d5014967f45272dbe35f49120819ddde5cd99224622a489cd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDA4OjYxNDY2Ojc1MzY2NDo5RjhDODI6NkFGRTZBNkEiLCJ2aXNpdG9yX2lkIjoiMTgzNzYzOTQyMTk1Njg3NjkwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc1b2a84a371c08b4eeddf29dfa8cb51a38f610d54a047ac8c71da5ea24249aff
hovercard-subject-tagissue:870959523
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/fullstackreact/google-maps-react/512/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1a5b155aa8f25354632815993d628b4971e3c2290f097a55f68cace50adff3d5/fullstackreact/google-maps-react/issues/512
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1a5b155aa8f25354632815993d628b4971e3c2290f097a55f68cace50adff3d5/fullstackreact/google-maps-react/issues/512
og:image:altI was tried to get the onClick event on the marker but I'm not able to get that. I was going through the document also I was created the static position and marker still it's not getting it. can so...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameabhijeetnavgire158
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/fullstackreact/google-maps-react git https://github.com/fullstackreact/google-maps-react.git
octolytics-dimension-user_id16674738
octolytics-dimension-user_loginfullstackreact
octolytics-dimension-repository_id57070925
octolytics-dimension-repository_nwofullstackreact/google-maps-react
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id57070925
octolytics-dimension-repository_network_root_nwofullstackreact/google-maps-react
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/fullstackreact/google-maps-react/issues/512#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffullstackreact%2Fgoogle-maps-react%2Fissues%2F512
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffullstackreact%2Fgoogle-maps-react%2Fissues%2F512
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=fullstackreact%2Fgoogle-maps-react
Reloadhttps://github.com/fullstackreact/google-maps-react/issues/512
Reloadhttps://github.com/fullstackreact/google-maps-react/issues/512
Reloadhttps://github.com/fullstackreact/google-maps-react/issues/512
fullstackreacthttps://github.com/fullstackreact
google-maps-reacthttps://github.com/fullstackreact/google-maps-react
Codehttps://github.com/fullstackreact/google-maps-react
Issues263 (263)https://github.com/fullstackreact/google-maps-react/issues
Pull requests29 (29)https://github.com/fullstackreact/google-maps-react/pulls
Actionshttps://github.com/fullstackreact/google-maps-react/actions
Projectshttps://github.com/fullstackreact/google-maps-react/projects
Security and qualityhttps://github.com/fullstackreact/google-maps-react/security
Insightshttps://github.com/fullstackreact/google-maps-react/insights
https://github.com/fullstackreact/google-maps-react
New issuehttps://github.com/login?return_to=https://github.com/fullstackreact/google-maps-react/issues/512
New issuehttps://github.com/login?return_to=https://github.com/fullstackreact/google-maps-react/issues/512
I was not able to get onClick event on Markerhttps://github.com/fullstackreact/google-maps-react/issues/512#top
https://github.com/abhijeetnavgire158
abhijeetnavgire158https://github.com/abhijeetnavgire158
on Apr 29, 2021https://github.com/fullstackreact/google-maps-react/issues/512#issue-870959523
Sign up for freehttps://github.com/signup?return_to=https://github.com/fullstackreact/google-maps-react/issues/512
Sign in to commenthttps://github.com/login?return_to=https://github.com/fullstackreact/google-maps-react/issues/512
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.