Skip to content

发现一个bug:比例尺的风格2不对 #5

@liyang4991

Description

@liyang4991

plot_map函数中,设置‘style’ == 2时,比例尺画出来是错误的,前边的黑色部分少一截。

line 292 应该修改为:
Polygon([(alon,alat),(alon+4deltaLon,alat),(alon+4deltaLon,alat+deltaLon0.4),(alon,alat+deltaLon0.4)])

源代码中第一个polygon的横坐标多加了一个deltaLon,所以画出来后总是少一截(四分之一)。

最后感谢作者提供的代码。

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions