gpt4 book ai didi

javascript - 单击 map 时 agm-snazzy-info-window 将关闭

转载 作者:行者123 更新时间:2023-11-28 03:45:45 31 4
gpt4 key购买 nike

但我不想在 map 中关闭,点击请帮忙。它有一个名为 closeOnMapClick 的属性,但它不起作用,

<agm-snazzy-info-window  closeWhenOthersOpen="true" [isOpen]="i == selected ? markerFlag : false" [latitude]="list.Latitude"
[longitude]="list.Longitude" closeOnMapClick="false">
<template>

</template>
<agm-snazzy-info-window>

最佳答案

您在所述属性周围缺少括号:

<agm-snazzy-info-window [closeWhenOthersOpen]="true" [isOpen]="i == selected ?
markerFlag : false" [latitude]="list.Latitude"
[longitude]="list.Longitude" [closeOnMapClick]="false">
<template>
<!-- Something -->
</template>
<agm-snazzy-info-window>

关于javascript - 单击 map 时 agm-snazzy-info-window 将关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48501505/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com