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

@jaywcjlove 还有一个问题,我这里Marker的位置会随着地图的缩放改变是什么原因 #261

Closed
huiwi opened this issue Nov 25, 2022 · 12 comments

Comments

@huiwi
Copy link

huiwi commented Nov 25, 2022

    @jaywcjlove 还有一个问题,我这里Marker的位置会随着地图的缩放改变是什么原因

Originally posted by @Garea-git in #45 (comment)

@huiwi
Copy link
Author

huiwi commented Nov 25, 2022

地图放大时marker的位置会随着地图的放大而往上移动

@jaywcjlove
Copy link
Member

@Garea-git 不知道我理解错了还是什么原因,我看文档示示例是正常的,是你写的示例,还是我文档上的示例有问题

如果是你自己的示例,请提供示例,谢谢

@huiwi
Copy link
Author

huiwi commented Nov 25, 2022

@Garea-git 不知道我理解错了还是什么原因,我看文档示示例是正常的,是你写的示例,还是我文档上的示例有问题

如果是你自己的示例,请提供示例,谢谢

不知道什么原因,我在codesandbox试我的代码是正常的,但是在本机上marker就会乱动,我录屏发给你看下?

@huiwi
Copy link
Author

huiwi commented Nov 25, 2022

https://abc-1302996373.cos.ap-nanjing.myqcloud.com/React%20App%20%E5%92%8C%E5%8F%A6%E5%A4%96%204%20%E4%B8%AA%E9%A1%B5%E9%9D%A2%20-%20%E4%B8%AA%E4%BA%BA%20-%20Microsoft%E2%80%8B%20Edge%202022-11-25%2013-57-59.mp4
这是我的录像地址,你看一下,缩放时marker都会跟着移动,只有地图放到最大时marker才刚好到我设置的坐标位置

@huiwi
Copy link
Author

huiwi commented Nov 25, 2022

@jaywcjlove
Copy link
Member

@Garea-git 你的代码明显不一样,有没有一种可能,你的代码有可能有 bug

@huiwi
Copy link
Author

huiwi commented Nov 25, 2022

@Garea-git 你的代码明显不一样,有没有一种可能,你的代码有可能有 bug
在codesandbox里面有些样式好像没加载出来,所以看着不一样

@huiwi
Copy link
Author

huiwi commented Nov 25, 2022

你是说哪里不一样?

@jaywcjlove
Copy link
Member

@Garea-git 为什么没有加载进来,所以我说,有没有一种可能是你本地代码与bug,我测试了示例没有问题,你发的示例也是没有问题的。

你的录制视频有问题。 你看录制的左边,codesandbox 右边,这视图界面本来就很大不同

image

@jaywcjlove
Copy link
Member

你自己都没有办法重现你视频录制里面的错误,我不知道哪儿错误,

通过排除法,肯定排除了组件问题,那剩下的问题就是,本地样式冲了地图的样式,你可以排出这个问题

在你的项目中注释样式,看问题是否存在,如果存在就是样式冲突

@huiwi
Copy link
Author

huiwi commented Nov 25, 2022

你自己都没有办法重现你视频录制里面的错误,我不知道哪儿错误,

通过排除法,肯定排除了组件问题,那剩下的问题就是,本地样式冲了地图的样式,你可以排出这个问题

在你的项目中注释样式,看问题是否存在,如果存在就是样式冲突

ok,找到问题了,麻烦了,谢谢。就是样式导致的。😂

@huiwi
Copy link
Author

huiwi commented Nov 25, 2022

不知道什么时候抽风了加了一个100vh的行高

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

2 participants