yue1123/vue3-baidu-map-gl

BInfoWindow 标注点 点击两次 会多次才显示 窗口

Closed this issue · 3 comments

点击 标注点 第一次 移动到标点位置 , 再次点击标注点 才显示title

Snipaste_2024-11-07_22-21-42
Snipaste_2024-11-07_22-22-23

            <BMap
              v-if="isShow_has_data_Map"
              :zoom="10"
              enableScrollWheelZoom
              mapStyleId="ee66c61531e8df3c2fd0374e96e58e81"
              style="width: 100%; height: 100%;"
            >
              <BNavigation3d :offset="{x:130,y:15}" />
              <BScale />
              <BCityList />
              <BLocation />
              <BZoom />
              <BContextMenu :menuItems="list" />
              <BMarker
                v-for="(item,index) in deviceMapEffectScatterDataList"
                :key="index"
                :position="{ lat: item.lat, lng: item.lng }"
                icon="location"
                @click="() => handleClickMapBMarker(item)"
              />
              <BInfoWindow
                v-model:show="mapInfoWindow.mapInfoWindowShow"
                :offset="{x: 0,y: -10}"
                :position="mapInfoWindow.position"
                :title="mapInfoWindow.title"
                enableAutoPan
                enableCloseOnClick
              />
            </BMap>
            <BMap
              v-else
              :menuItems="list"
              :zoom="10"
              enableScrollWheelZoom
              mapStyleId="ee66c61531e8df3c2fd0374e96e58e81"
              style="width: 100%; height: 100%;"
            />

Snipaste_2024-11-07_22-17-53

Snipaste_2024-11-07_22-17-16

Snipaste_2024-11-07_22-19-05

能否提供下完整代码或者在线 playground 链接,只有截图我也看不出来是逻辑错误还是组件本身问题

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.