Main SlippyMap distance scale does not change with the latitude #1704
Comments
Author: FvGordon The value of the distance/scale indicator should be divided by the cosine of the latitude of the center coordinates. |
Author: tom[at]compton.nu Yes genius, we know how to do it. We just don't want to. This was discussed great length when I first bowed to pressure and added the scale to the map (something I may now be regretting...) and as I explained then doing that makes the scale correct for distances measured along lines of latitude but not for distances measured along lines of longitude (or indeed at any angle in between). The current solution has the opposite problem - it is correct along lines of longitude but not along lines of latitude. Neither is any more or less correct than the other. The only reason people think that a scale which changes is better is because that's what Google does. In any case, the scale bar is a standard OpenLayers widget, so any change would need to be addressed in OpenLayers. |
Author: seav Replying to [comment:2 tom[at]compton.nu]:
Er, the spherical Mercartor projection is a conformal map projection which means that at sufficiently high zoom levels, the x-distance is equal to the y-distance. This is why circular buildings appear circular and square buildings look square. So your reasoning about longitude vs. latitude and Google is incorrect. When sufficiently zoomed in, a dynamic scale bar (as used by Google) is the correct approach. But since you mention that this is an OpenLayers bug, then I suggest that the better resolution (as opposed to wontfix) is to remove the scale until the people at OpenLayers fix it since what is there now is highly misleading (and maybe harmful). |
Author: tomhughes (In [17641]) Remove scale bar. Closes #1704. |
Author: tom[at]compton.nu Happy now? BTW I notice you cleverly added "when zoomed in far enough" to your comment because of course, as I'm sure you know, it is only true when zoomed in far enough. In fact of course scale is not even constant across the whole displayed image although the degree of variation is larger the further out you are. No projection of a sphere onto a plane can provide constant scale at all zoom levels, and our map is not limited to people who are "zoomed in far enough". I have no idea how you think it might be harmful - maybe you're expecting some lunatic to scale something safety critical off our map... |
Author: seav No need to be snarky; I never intended to be rude and I don't think that my reply was disrespectful. And when I meant harmful, I didn't mean that the slippy map is a safety hazard, just that someone might use it to input bad data (improbable that might seem). For example, I did try to use the scale to confirm or estimate some distances when I was contributing data to OSM but then I realized that the scale was invariant with latitude (and can't be trusted even for estimating) so that's why I submitted this ticket. |
Author: david.treumann[at]freenet.de Where can I see what these "OpenLayers"-people are doing about this? |
Author: tom[at]compton.nu Over at http://openlayers.org/ ;-) |
Author: david.treumann[at]freenet.de Replying to [comment:8 tom[at]compton.nu]:
Thank you very much for your fast reply but I can't find anything concerning the missing scale bar on the OpenLayers-Website. |
Author: TomH I believe http://trac.openlayers.org/ticket/1890 is what you're looking for. |
Author: david.treumann[at]freenet.de Replying to [comment:10 TomH]:
Thanks a lot for your all the answers. Now I can stay informed :) Keep up the great work you are doing. |
Author: axelboldt[at]yahoo.com Maybe a possible compromise would be to add a scale only at zoom levels where the distortion doesn't make it misleading, i.e. where the longitudinal and latitudinal distance scales across the displayed map are within say 10% of each other. We can't estimate distances by eye much better than that anyway. I think maps in atlases do it that way. Cheers! |
Reporter: seav
[Submitted to the original trac issue database at 2.07am, Friday, 10th April 2009]
The distance/scale indicator at the bottom left of the main SlippyMap does not change when the map is panned north or south. This makes it really misleading.
The text was updated successfully, but these errors were encountered: