Angular-google-maps: 如何利用 SebmGoogleMapInfoWindow 的 maxWidth 属性?

创建于 2016-09-14  ·  3评论  ·  资料来源: SebastianM/angular-google-maps

我正在使用最新版本的 angular2-google-maps (0.14.0) 并且我想使用SebmGoogleMapInfoWindowmaxWidth属性,但我不清楚(来自文档) 您将如何传递此配置选项。 这仅在SebmGoogleMapInfoWindow编程方式调用

  <sebm-google-map-marker *ngFor="let location of locations" [latitude]="location.latitude" [longitude]="location.longitude">
    <sebm-google-map-info-window [disableAutoPan]="false">
      InfoWindow stuff...
    </sebm-google-map-info-window>
  </sebm-google-map-marker>
urgent AgmInfoWindow bug

所有3条评论

@mensch可能是这样的:

<sebm-google-map-info-window [disableAutoPan]="false" [maxWidth]="myWidth">
      InfoWindow stuff...
    </sebm-google-map-info-window>

如果您认为有错误,请随时重新打开。

@SebastianM感谢您的回复! 我尝试使用maxWidth作为输入(以及zIndex ),但出现以下错误:

Can't bind to 'maxWidth' since it isn't a known property of 'sebm-google-map-info-window'.

出于某种原因, isOpendisableAutoPan不会触发相同的错误,我使用它们没有任何问题。

哦,你是对的,那是一个错误! 缺少绑定。 我们将其添加到今天的版本中(支持 angular 2.0.0)

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

Subhojit1992 picture Subhojit1992  ·  3评论

DeveloperAdd007 picture DeveloperAdd007  ·  3评论

vamsibassetty08 picture vamsibassetty08  ·  3评论

gizm0bill picture gizm0bill  ·  4评论

alexweber picture alexweber  ·  4评论