Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多个海量点组件触发多次事件 #19

Open
xingshuyin opened this issue Nov 22, 2022 · 0 comments
Open

多个海量点组件触发多次事件 #19

xingshuyin opened this issue Nov 22, 2022 · 0 comments

Comments

@xingshuyin
Copy link

我想在地图上添加不同颜色的海量点,于是就使用多个海量点组件, 我发现每次悬浮到点上都会触发三次方法,正常来说应该只是触发一次对应的方法

        <bm-point-collection :points="attrs.data.fenshao" shape="BMAP_POINT_SHAPE_CIRCLE" color="blue"
            size="BMAP_POINT_SIZE_SMALL" @click="(e, r) => { click_points(e, r, 'fenshao') }"
            @mouseover="(e, r) => { over_points(e, r, 'fenshao') }"
            @mouseout="(e, r) => { out_points(e, r, 'fenshao') }">
        </bm-point-collection>
        <bm-point-collection :points="attrs.data.jianzhu" shape="BMAP_POINT_SHAPE_CIRCLE" color="yellow"
            size="BMAP_POINT_SIZE_SMALL" @click="(e, r) => { click_points(e, r, 'jianzhu') }"
            @mouseover="(e, r) => { over_points(e, r, 'jianzhu') }"
            @mouseout="(e, r) => { out_points(e, r, 'jianzhu') }">
        </bm-point-collection>
        <bm-point-collection :points="attrs.data.tianmai" shape="BMAP_POINT_SHAPE_CIRCLE" color="pink"
            size="BMAP_POINT_SIZE_SMALL" @click="(e, r) => { click_points(e, r, 'jianzhu') }"
            @mouseover="(e, r) => { over_points(e, r, 'jianzhu') }"
            @mouseout="(e, r) => { out_points(e, r, 'jianzhu') }">
        </bm-point-collection>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant