Skip to content

Commit

Permalink
fix(SebmGoogleMapInfoWindow): zIndex and maxWidth
Browse files Browse the repository at this point in the history
Fixes #651
Closes #656
  • Loading branch information
sebholstein committed Sep 15, 2016
1 parent cb2c465 commit 1bc2ed8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/directives/google-map-info-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let infoWindowId = 0;
*/
@Component({
selector: 'sebm-google-map-info-window',
inputs: ['latitude', 'longitude', 'disableAutoPan', 'isOpen'],
inputs: ['latitude', 'longitude', 'disableAutoPan', 'isOpen', 'zIndex', 'maxWidth'],
outputs: ['infoWindowClose'],
template: `<div class='sebm-google-map-info-window-content'>
<ng-content></ng-content>
Expand Down
2 changes: 2 additions & 0 deletions src/core/services/managers/info-window-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ export class InfoWindowManager {
addInfoWindow(infoWindow: SebmGoogleMapInfoWindow) {
const options: InfoWindowOptions = {
content: infoWindow.content,
maxWidth: infoWindow.maxWidth,
zIndex: infoWindow.zIndex,
};
if (typeof infoWindow.latitude === 'number' && typeof infoWindow.longitude === 'number') {
options.position = {lat: infoWindow.latitude, lng: infoWindow.longitude};
Expand Down

0 comments on commit 1bc2ed8

Please sign in to comment.