Scale control size wrong #852

Closed
jtreml opened this Issue Jul 30, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@jtreml
Contributor

jtreml commented Jul 30, 2012

Unfortunately I had never actually checked this before, but the scale in the scale control seems to be wrong. E.g. the size that scale shows for 1 km actually corresponds to about 1.3 to 1.4 km

How to verify:
Method A

  • Just zoom in on your favorite city (on country / world level, scale is an average anyway, as it varies greatly depending on the location on the map)
  • pick some landmark feature you know the length of (or have measured otherwise, e.g. on Google Maps, etc.) and compare to the size of the scale shown on the map
  • scale size seems to be off between around 20% to 40%

Method B

  • Pick two points near the ends of the scale control on the map and measure them with leaflet's distanceTo function
  • Compare with what the scale control shows
@mourner

This comment has been minimized.

Show comment Hide comment
@mourner

mourner Jul 30, 2012

Owner

Hmm, seems that you're right. :( I'll try to figure out what's happening there.

Owner

mourner commented Jul 30, 2012

Hmm, seems that you're right. :( I'll try to figure out what's happening there.

@mourner mourner closed this in e3b2b78 Jul 30, 2012

@mourner

This comment has been minimized.

Show comment Hide comment
@mourner

mourner Jul 30, 2012

Owner

Fixed :) I'll release a hotfix Leaflet version 0.4.1 tomorrow.

Owner

mourner commented Jul 30, 2012

Fixed :) I'll release a hotfix Leaflet version 0.4.1 tomorrow.

@jtreml

This comment has been minimized.

Show comment Hide comment
@jtreml

jtreml Jul 30, 2012

Contributor

Great! Besides that, new 0.4 version hasn't given me any trouble so far, btw! Great work!

Contributor

jtreml commented Jul 30, 2012

Great! Besides that, new 0.4 version hasn't given me any trouble so far, btw! Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment