How to insert InfoWindow inside MarkerWithLabel for last react-google-maps version ?
See original GitHub issueHow to insert InfoWindow inside MarkerWithLabel for react-google-maps@9.4.3 ? In previous versions I used next code and it worked perfect:
<Marker
key={index}
markerWithLabel={window.MarkerWithLabel}
position={location}
icon={icon}
...
>
{ marker.showInfoWindow &&
<InfoWindow onCloseClick={() => props.onCloseInfo(marker)} zIndex={zIndex}>
...
Should I use following ?
<MarkerWithLabel
key={index}
position={location}
icon={icon}
...
>
<span>
<div>{marker.name}</div>
{ marker.showInfoWindow &&
<InfoWindow
onCloseClick={() => props.onCloseInfo(marker)}
zIndex={zIndex}
>
...
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
react-google-maps: MarkerWithLabel AND InfoWindow?
The current workaround as per this comment involves rendering the InfoWindow next to the Marker in the component structure, both with the same ......
Read more >React Google Maps Style Guide
In order to initialize the MyMapComponent with DOM instances, you'll need to wrap it with withGoogleMap HOC. import { withGoogleMap, GoogleMap, Marker }...
Read more >Info Windows | Maps JavaScript API - Google Developers
Opening an info window on a marker will automatically update the position . maxWidth specifies the maximum width of the info window in...
Read more >markerwithlabel examples - CodeSandbox
Learn how to use markerwithlabel by viewing and forking markerwithlabel ... you can render multiple markers and main each state to toggle the...
Read more >markerwithlabel-custom - npm Package Health Analysis - Snyk
npm module of Google Map utility's Marker With Label For more information about how to use this package see README. Latest version published...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i think he gives a f*** 🤣
This library is not maintained, please look at @react-google-maps/api