Skip to content

Markers style z-index #259

Closed Answered by giorgiabosello
petritnuredini asked this question in Help
Discussion options

You must be logged in to vote

Hi @petritnuredini I should update the documentation, by the way, zIndex prop is managed on the Marker itself and forwarded to the Overlay, so you can control it, like this:

<GoogleMap
	apiKey={googleMapApi}
	defaultCenter={{ lat: 45.4046987, lng: 12.2472504 }}
	defaultZoom={5}
	options={defaultProps}
	mapMinHeight="100%"
	onGoogleApiLoaded={onGoogleApiLoaded}
	onChange={(map) => onMapMove(map)}
	loadingContent={null}
>
	{Companies.map((company: CompanyDetails, index: number) => (
		<Marker
			key={index}
			lat={company.lat}
			lng={company.lng}
			company={company}
			markerId={company.id}
			onClick={onMarkerClick}
			isActive={company.id === activeTooltipId}
			setActiveTooltipId={set…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@petritnuredini
Comment options

@giorgiabosello
Comment options

@AbdelrahmanAhmed605
Comment options

@petritnuredini
Comment options

@AbdelrahmanAhmed605
Comment options

Answer selected by petritnuredini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants