import * as React from "react"; import * as ReactDOM from "react-dom"; import { GetNamespacedMarkerId, MarkerComponentProps } from "../../types"; export class Marker extends React.Component { getNamespacedMarkerId: GetNamespacedMarkerId; constructor(props: MarkerComponentProps) { super(props); this.getNamespacedMarkerId = props.getNamespacedMarkerId; } render() { const { id, markerDrawer, markerProperty, markerName, getNamespacedMarkerId } = this.props; const { markerAttributes, groupChildren } = markerDrawer("white", "black"); const { markerWidth, markerHeight } = markerAttributes; const namespacedMarkerId = getNamespacedMarkerId({ markerProperty, markerName }); return ( {groupChildren} ); } }