-
Notifications
You must be signed in to change notification settings - Fork 165
html overlay item
Georgios Karnas edited this page Mar 21, 2019
·
1 revision
This is an HTML item that will be rendered inside HtmlOverlay or HtmlClusterOverlay.
return (
<HtmlOverlayItem
style={{
transform: 'translate(-50%,-50%)',
pointerEvents: 'all'
}}
coordinates={coordinates}
key={key}
>
YOUR CONTENT HERE.
</HtmlOverlayItem>
);
Array of two numbers where this will be displayed.
By default the top-left corner will align with the provided coordinates
.
You can use CSS to change the anchor point.
For example use transform: 'translate(-50%,-50%)'
to center.
By default this will not receive any mouse events.
Use pointerEvents: 'all'
to receive events.
Because this is used inside an array of react components
you
need to provide a unique key
. See the React docs
Footer
Sidebar