I am creating a Pop up
this.popUp = new mapboxgl.Popup({
closeButton: true,
closeOnClick: true,
anchor: 'bottom-left',
})
.setLngLat(coordinates)
.setHTML(
'<span><p>Foo: Bar
+ <img class="pop-up-image" src=.../></span>'
)
.addTo(this.map);
The content of the Pop up
I define the following
.setHTML(
'<span><p>Foo: Bar
+ <img class="pop-up-image" src=.../></span>'
)
Is there a way to pass a React.Component
or a functional Component
to the Pop up as content?