-
Notifications
You must be signed in to change notification settings - Fork 19.8k
地图经纬度坐标转换成为像素坐标方法convertToPixel未按实际zoom值进行转换 #12053
Copy link
Copy link
Closed
Labels
buginactiveNot active for some time or no response from the author. Will be closed soon.Not active for some time or no response from the author. Will be closed soon.missing-demoThe author should provide a demo.The author should provide a demo.pendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.topic: mapwaiting-for: author
Metadata
Metadata
Assignees
Labels
buginactiveNot active for some time or no response from the author. Will be closed soon.Not active for some time or no response from the author. Will be closed soon.missing-demoThe author should provide a demo.The author should provide a demo.pendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.topic: mapwaiting-for: author
Type
Fields
Give feedbackNo fields configured for issues without a type.
Version
4.5.0
Steps to reproduce
1 地图实现放大缩小效果,但是地图上有一层业务层,遮住了地图,所以无法用地图的roam:true的方法实现
2 通过setOption改变zoom、top和left值,实现放大缩小和拖拽的功能,业务层通过convertToPixel经纬度坐标转换成为像素坐标方法获取x,y绘制
3 现象是:初始zoom为1,改变top和left值后,通过convertToPixel转换出来的x和y是正确的
只改变zoom,不改变top和left,通过convertToPixel转换出来的x和y是正确的
改变zoom后,改变top和left值,convertToPixel转换的值是按zoom为1时转换的
What is expected?
改变zoom后,改变top和left值,convertToPixel转换的值是按zoom的实际值进行转换x和y坐标
What is actually happening?
改变zoom后,改变top和left值,convertToPixel转换的值是按zoom为1进行转换x和y坐标