diff --git a/src/markers/MMapDefaultMarker/index.css b/src/markers/MMapDefaultMarker/index.css index 2366de2..94157dd 100644 --- a/src/markers/MMapDefaultMarker/index.css +++ b/src/markers/MMapDefaultMarker/index.css @@ -1,4 +1,4 @@ -@keyframes hint-hover { +@keyframes mappable--default-marker-hint-hover { from { margin-left: -10px; opacity: 0; @@ -37,7 +37,7 @@ } .mappable--default-marker-point:hover .mappable--hint__hovered { display: inline-flex; - animation: hint-hover 200ms ease-out; + animation: mappable--default-marker-hint-hover 200ms ease-out; } .mappable--hint-title { display: block; diff --git a/src/markers/MMapDefaultMarker/index.ts b/src/markers/MMapDefaultMarker/index.ts index 2bf51fb..0864a70 100644 --- a/src/markers/MMapDefaultMarker/index.ts +++ b/src/markers/MMapDefaultMarker/index.ts @@ -64,8 +64,6 @@ export class MMapDefaultMarker extends mappable.MMapComplexEntity void; - constructor(props: MMapDefaultMarkerProps) { super(props); } @@ -120,7 +118,7 @@ export class MMapDefaultMarker extends mappable.MMapComplexEntity this._updateTheme(), { + this._watchContext(mappable.ThemeContext, () => this._updateTheme(), { immediate: true }); } @@ -153,10 +151,6 @@ export class MMapDefaultMarker extends mappable.MMapComplexEntity