import "core-js" ; type { Map < string , ScriptState > } export const DomIcons = new Map < string , H . map . DomIcon > ( ) ; param html { string } export default function getDomMarkerIcon ( html ) { if ( ! DomIcons . has ( html ) ) { const icon = new H . map . DomIcon ( html ) ; DomIcons . set ( html , icon ) ; } return DomIcons . get ( html ) ; }