Skip to content
Discussion options

You must be logged in to vote

Looks like there is a slight difference in the way content and headerContent behave. If you refer to the docs:

  • content: Content to display in the InfoWindow. This can be an HTML element, a plain-text string, or a string containing HTML.
  • headerContent: The content to display in the InfoWindow header row. This can be an HTML element, or a string of plain text.

The difference being that content can take a string containing HTML but headerContent cannot. You're going to have to use an actual HTML element here:

const header = document.createElement('h1')
header.textContent = 'Header'

const InfoWindowOptions = {
  headerContent: header,
};

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mikechalmers
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #297 on December 01, 2024 22:38.