How to add anchorPoint property in anchor prop in InfoWindow ? #2998
alexkobylansky
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I add some markers to my map.
const renderMarkers = () => { const pinGreenURL = new URL("/image/icons/markerPinGreen.svg", origin); return <MarkerClusterer> {(clusterer) => { return users.map(user: any, index: number) => ( <Marker key={
user_#${index}} icon={{ url:
${pinGreenURL}, scaledSize: new google.maps.Size(25, 25), }} position={{ lat: user.lat, lng: user.lng }} clusterer={clusterer} /> )) }} </MarkerClusterer> }
Then i add InfoWindows
const renderInfoWindows = () => { return users.map((user: any, index: number) => <InfoWindow key={
user_${index}`}position={{
lat: item.lat,
lng: item.lng
}}
And I need, that InfoWindow show above a Marker, and InfoWindow need to show after click to same marker.
How i can do that ?
Beta Was this translation helpful? Give feedback.
All reactions