Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 9544a00

Browse files
Rafał Harabieńsebholstein
authored andcommitted
fix(SebmGoogleMapMarker): set marker title
Closes #505
1 parent d148f21 commit 9544a00

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/core/services/managers/marker-manager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export class MarkerManager {
6969
icon: marker.iconUrl,
7070
opacity: marker.opacity,
7171
visible: marker.visible,
72-
zIndex: marker.zIndex
72+
zIndex: marker.zIndex,
73+
title: marker.title
7374
});
7475
this._markers.set(marker, markerPromise);
7576
}

test/services/managers/marker-manager.spec.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export function main() {
3636
icon: undefined,
3737
opacity: 1,
3838
visible: true,
39-
zIndex: 1
39+
zIndex: 1,
40+
title: undefined
4041
});
4142
}));
4243
});
@@ -81,7 +82,8 @@ export function main() {
8182
icon: undefined,
8283
opacity: 1,
8384
visible: true,
84-
zIndex: 1
85+
zIndex: 1,
86+
title: undefined
8587
});
8688
const iconUrl = 'http://angular-maps.com/icon.png';
8789
newMarker.iconUrl = iconUrl;
@@ -112,7 +114,8 @@ export function main() {
112114
icon: undefined,
113115
visible: true,
114116
opacity: 1,
115-
zIndex: 1
117+
zIndex: 1,
118+
title: undefined
116119
});
117120
const opacity = 0.4;
118121
newMarker.opacity = opacity;
@@ -144,7 +147,8 @@ export function main() {
144147
icon: undefined,
145148
visible: false,
146149
opacity: 1,
147-
zIndex: 1
150+
zIndex: 1,
151+
title: undefined
148152
});
149153
newMarker.visible = true;
150154
return markerManager.updateVisible(newMarker).then(
@@ -175,7 +179,8 @@ export function main() {
175179
icon: undefined,
176180
visible: false,
177181
opacity: 1,
178-
zIndex: 1
182+
zIndex: 1,
183+
title: undefined
179184
});
180185
const zIndex = 10;
181186
newMarker.zIndex = zIndex;

0 commit comments

Comments
 (0)