Skip to content

Instantly share code, notes, and snippets.

@odoe
Created March 28, 2019 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odoe/c7f5f5dd399439d1a2e707ecc16ade77 to your computer and use it in GitHub Desktop.
Save odoe/c7f5f5dd399439d1a2e707ecc16ade77 to your computer and use it in GitHub Desktop.
export default class Map extends WidgetBase<MapProperties> {
onAttach() {
const element = this.meta(HtmlMeta).get("elemRef") as HTMLElement;
this.properties.initializeMap(element);
}
protected render() {
return <div classes={css.root} key="elemRef" />;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment