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

DrawTool support transform coordinate #2357

Merged
merged 6 commits into from
Jul 3, 2024

Conversation

deyihu
Copy link
Collaborator

@deyihu deyihu commented Jun 20, 2024

fix maptalks/issues#698
fix #1359

        const drawTool = new maptalks.DrawTool({
            mode: "Point",
            once: true,
            transformCoordinate: (coordinate, mapEvent) => {
                const result = groupGLLayer.identify(coordinate);
                if (result.length) {
                    return new maptalks.Coordinate(result[0].coordinate);
                }
            }
        })
            .addTo(map)
            .disable();

@deyihu deyihu requested a review from fuzhenn June 20, 2024 08:56
@fuzhenn
Copy link
Member

fuzhenn commented Jun 21, 2024

需等待测试通过

@deyihu
Copy link
Collaborator Author

deyihu commented Jun 21, 2024

已经通过

@deyihu deyihu requested a review from fuzhenn June 24, 2024 01:31
@fuzhenn fuzhenn merged commit a9bd958 into maptalks:master Jul 3, 2024
1 check passed
@deyihu deyihu deleted the draw-transformcoordinate branch July 3, 2024 04:11
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

Successfully merging this pull request may close these issues.

drawtool 无法在3dtiles 或者glb模型上进行 绘制有高度的点线面 Wheel scroll event
2 participants