Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect scale line - incorrect distance value #101

Closed
xintrea opened this issue Nov 3, 2018 · 10 comments
Closed

Incorrect scale line - incorrect distance value #101

xintrea opened this issue Nov 3, 2018 · 10 comments
Labels

Comments

@xintrea
Copy link

xintrea commented Nov 3, 2018

Hi!

Your scale line (at corner of map) is incorrect.

See at this image: OSM vs OSeaM

Real distance of 1km your engine show as 1nmi. And your 1 km is too small relatively real 1km.

I compared OpenSeaMap scale line with OpenStreetMap, YandexMaps, GoogleMaps. All this map service show correct distance. But OpenSeaMap show incorrect.

Please, fix it.

@Nautic Nautic added the question label Nov 3, 2018
@Nautic
Copy link
Contributor

Nautic commented Nov 3, 2018

Hi, thanks for your error message.
Please can you add a permalink for the OpenSeaMap and OpenStreetMap position
so we can check the latitude?
Thanks, Markus

@xintrea
Copy link
Author

xintrea commented Nov 3, 2018

@mojoaxel
Copy link

mojoaxel commented Nov 3, 2018

Looks like the distance-indicator is off by one zoom-level in OpenSeaMap.

@wschildbach
Copy link
Collaborator

I think it is off by more -- if you put both an OpenStreetMap and an OpenSeaMap display at equal scale, the ScaleLine has a different size not a factor of two.
The OpenLayers ScaleLine module has seen a number of bug fixes relating to scale. We should consider updating to a newer version of openLayers.

@Nautic
Copy link
Contributor

Nautic commented Oct 7, 2019

Mit gleichem Zoomlevel und gleichem Kartenmittelpunkt
sind die Kartenausschnitte in OSM (OL ?) und OpenSeaMap (OL 2) identisch.
Aber die Skalen zeigen in OSM 500m, in OpenSeaMap 1km,
und die Skalenlänge differiert von OSM mit 12mm für 500m zu OpenSeaMap mit 13,5mm für 1km.

Ich vermute den Fehler im Skript für den Massstab (scale).
Siehe #17

Update auf OL-6 wäre sinnvoll - aber ein anderer Issue.
Zum geplanten OL-3-Update (2013) siehe Issues OL-3

wschildbach added a commit to wschildbach/online_chart that referenced this issue Oct 7, 2019
@wschildbach
Copy link
Collaborator

With an additional patch (PR forthcoming), this is what the ScaleLine looks like:

image

wschildbach added a commit to wschildbach/online_chart that referenced this issue Oct 13, 2019
aAXEe pushed a commit that referenced this issue Oct 14, 2019
This fixes issue #17 and #101.
@wschildbach
Copy link
Collaborator

Hi @xintrea , can you take another look whether the problem is resolved and close the bug if it is?

@wschildbach
Copy link
Collaborator

This issue is fixed -- we can close the issue.
@Nautic kannst Du das zumachen?

@Nautic
Copy link
Contributor

Nautic commented Oct 25, 2019

Vielen Dank für die Korrektur, und für die Verbesserung im Layout :-)
In z=14,15,17,18 finde ich das Layout hilfreich.

In z=3..11 könnte die Linie deutlich länger sein (Faktor 5?)
In z=12,13,16 könnte die Linie noch länger sein (Faktor 2..3?)
In z=15 ist das Verhältnis von nmi und km noch ungünstig (nmi grösser)

@wschildbach
Copy link
Collaborator

moved last comment into new feature #132 and closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants