Skip to content

Commit

Permalink
fix(SebmGoogleMapMarker): set marker title
Browse files Browse the repository at this point in the history
Closes #505
  • Loading branch information
Rafał Harabień authored and sebholstein committed Aug 15, 2016
1 parent d148f21 commit 9544a00
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/core/services/managers/marker-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export class MarkerManager {
icon: marker.iconUrl,
opacity: marker.opacity,
visible: marker.visible,
zIndex: marker.zIndex
zIndex: marker.zIndex,
title: marker.title
});
this._markers.set(marker, markerPromise);
}
Expand Down
15 changes: 10 additions & 5 deletions test/services/managers/marker-manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export function main() {
icon: undefined,
opacity: 1,
visible: true,
zIndex: 1
zIndex: 1,
title: undefined
});
}));
});
Expand Down Expand Up @@ -81,7 +82,8 @@ export function main() {
icon: undefined,
opacity: 1,
visible: true,
zIndex: 1
zIndex: 1,
title: undefined
});
const iconUrl = 'http://angular-maps.com/icon.png';
newMarker.iconUrl = iconUrl;
Expand Down Expand Up @@ -112,7 +114,8 @@ export function main() {
icon: undefined,
visible: true,
opacity: 1,
zIndex: 1
zIndex: 1,
title: undefined
});
const opacity = 0.4;
newMarker.opacity = opacity;
Expand Down Expand Up @@ -144,7 +147,8 @@ export function main() {
icon: undefined,
visible: false,
opacity: 1,
zIndex: 1
zIndex: 1,
title: undefined
});
newMarker.visible = true;
return markerManager.updateVisible(newMarker).then(
Expand Down Expand Up @@ -175,7 +179,8 @@ export function main() {
icon: undefined,
visible: false,
opacity: 1,
zIndex: 1
zIndex: 1,
title: undefined
});
const zIndex = 10;
newMarker.zIndex = zIndex;
Expand Down

0 comments on commit 9544a00

Please sign in to comment.