Skip to content

地图经纬度坐标转换成为像素坐标方法convertToPixel未按实际zoom值进行转换 #12053

@LZHbb

Description

@LZHbb

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坐标

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginactiveNot active for some time or no response from the author. Will be closed soon.missing-demoThe author should provide a demo.pendingWe are not sure about whether this is a bug/new feature.topic: mapwaiting-for: author

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions