我正在使用最新版本的 angular2-google-maps (0.14.0) 并且我想使用SebmGoogleMapInfoWindow
的maxWidth
属性,但我不清楚(来自文档) 您将如何传递此配置选项。 这仅在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>
@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'.
出于某种原因, isOpen
和disableAutoPan
不会触发相同的错误,我使用它们没有任何问题。
哦,你是对的,那是一个错误! 缺少绑定。 我们将其添加到今天的版本中(支持 angular 2.0.0)