|
|
@ -14,7 +14,7 @@ |
|
|
|
* limitations under the License. |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
import { abortEvent, stopPropagation } from "./util"; |
|
|
|
import { abortEvent, omit, stopPropagation } from "./util"; |
|
|
|
|
|
|
|
|
|
|
|
import { Label } from "./label"; |
|
|
|
import { Label } from "./label"; |
|
|
|
import { MarkerSafe } from "./marker-safe"; |
|
|
|
import { MarkerSafe } from "./marker-safe"; |
|
|
@ -49,7 +49,15 @@ export class MarkerWithLabel extends MarkerSafe { |
|
|
|
private mouseOutTimeout: ReturnType<typeof setTimeout>; |
|
|
|
private mouseOutTimeout: ReturnType<typeof setTimeout>; |
|
|
|
|
|
|
|
|
|
|
|
constructor(options: MarkerWithLabelOptions) { |
|
|
|
constructor(options: MarkerWithLabelOptions) { |
|
|
|
super({ ...options }); |
|
|
|
// need to omit extended options to Marker class that collide with setters/getters
|
|
|
|
|
|
|
|
super( |
|
|
|
|
|
|
|
omit(options, [ |
|
|
|
|
|
|
|
"labelAnchor", |
|
|
|
|
|
|
|
"labelZIndexOffset", |
|
|
|
|
|
|
|
"labelClass", |
|
|
|
|
|
|
|
"labelContent", |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
); |
|
|
|
this.label = new Label({ ...{}, ...options }); |
|
|
|
this.label = new Label({ ...{}, ...options }); |
|
|
|
|
|
|
|
|
|
|
|
this.propertyListeners = [ |
|
|
|
this.propertyListeners = [ |
|
|
|