Modify

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5911 closed defect (fixed)

Missing attribution for OSM

Reported by: kellerma Owned by: mfloryan
Priority: normal Component: Core
Version: latest Keywords: attribution copyright
Cc:

Description

When displaying a map from the OpenStreetMap the attribution should be displayed properly:
a) the licence (CC-by-SA)
b) the origin (OpenStreetMap)

I know that at the moment there's "OpenStreetMap wechselt die Lizenz. Dazu ist die <etc.>" at the splash screen but that's only a "temporary" "solution".

It would be better to show attribution within the "slippy map chooser". Couldn't find a way
to open a ticket for "jmapviewer" which has the same defect.

Thank you.

Attachments (2)

[mfloryan]_AttributionHint_for_SlippyMap.patch (4.5 KB) - added by mfloryan 2 years ago.
Patch with new functionality
JMapViewer_attribution.patch (4.0 KB) - added by mfloryan 2 years ago.
Attribution patch for the JMapViewer - will submit to authors.

Download all attachments as: .zip

Change History (24)

comment:1 Changed 2 years ago by anonymous

The JMapViewer already provides attribution information for all Tile Sources. It's just not shown in JOSM.

Changed 2 years ago by mfloryan

Patch with new functionality

comment:2 Changed 2 years ago by mfloryan

  • Owner changed from team to mfloryan
  • Status changed from new to assigned

comment:3 Changed 2 years ago by mfloryan

  • Summary changed from Missing attribution for OSM to Missing attribution for OSM [patch]

Indicated this ticket now has a patch.

comment:4 follow-up: Changed 2 years ago by kellerma

Mmmh, maybe I don't understand the patch but why should the attribution text be visible only for 10 s and not as long as the slippy map chooser is active?
When we choose "Bing" within the slippy map chooser the attribution doesn't vanish after 10 seconds.

As a side-note: The "Background Terms of Use" are not "clickable" in the "Bing view".

comment:5 follow-up: Changed 2 years ago by kellerma

The JMapViewer already provides attribution information for all Tile Sources

@anonymous
You're correct, it has been added by Upliner two months ago.

Still if someone likes to add attribution to the "demo-app" JMapViewer_Demo.jar, also.

comment:6 in reply to: ↑ 4 Changed 2 years ago by mfloryan

Replying to kellerma:

Mmmh, maybe I don't understand the patch but why should the attribution text be visible only for 10 s and not as long as the slippy map chooser is active?

I added an overlay that shows the attribution text but wasn't sure if it wouldn't be too obtrusive if it stayed fixed.
The patch is for JOSM as I wasn't sure how to submit a patch for JMapViewer but now looking at the code it would be a better place to submit it.

When we choose "Bing" within the slippy map chooser the attribution doesn't vanish after 10 seconds.

True, but that's rendered right on the map. I guess it should equally be rendered on the other maps.

As a side-note: The "Background Terms of Use" are not "clickable" in the "Bing view".

I guess it should be - again, it would need a fix for the JMapViewer. I can prepare one.

comment:7 in reply to: ↑ 5 Changed 2 years ago by mfloryan

Replying to kellerma:

The JMapViewer already provides attribution information for all Tile Sources

@anonymous
You're correct, it has been added by Upliner two months ago.

Still if someone likes to add attribution to the "demo-app" JMapViewer_Demo.jar, also.

Yup, this can be done. I'll prepare a cumulative patch for JMapViewer and we can see how to get it applied. If the attribution is shown in the demo it will also be visible in JOSM.

comment:8 Changed 2 years ago by mfloryan

Actually I realised that even the current attribution text in the JMapViewer source code for OSM is incorrect. Will fix that too.

Changed 2 years ago by mfloryan

Attribution patch for the JMapViewer - will submit to authors.

comment:9 Changed 2 years ago by mfloryan

  • Resolution set to fixed
  • Status changed from assigned to closed

The patch has been applied and committed as #25314 in the OSM repository.

However, the link is still not click-able, this probably needs to be another piece of work at it might need a more significant change.

comment:10 Changed 2 years ago by glebius

The patch applied to the SVN broke all TMS layers functionality:

https://josm.openstreetmap.de/ticket/5965

I reverted it partially in OSM rev 25336.

comment:11 Changed 2 years ago by kellerma

  • Resolution fixed deleted
  • Status changed from closed to reopened

TMS works again but now attribution is also missing again

comment:12 Changed 2 years ago by Zverikk

This was a bug in TMS Layer. As soon as #5965 is fixed, the patch can be reapplied.

comment:13 follow-up: Changed 2 years ago by kellerma

It seems that #5965 has been fixed so can you re-apply the "3-lines-only" of the remaining patch?

Thank you.

comment:14 in reply to: ↑ 13 ; follow-up: Changed 2 years ago by bastiK

Replying to kellerma:

It seems that #5965 has been fixed so can you re-apply the "3-lines-only" of the remaining patch?

Thank you.

what patch do you want applied and where?

comment:15 in reply to: ↑ 14 Changed 2 years ago by anonymous

  • Resolution set to fixed
  • Status changed from reopened to closed

Replying to bastiK:

Replying to kellerma:

It seems that #5965 has been fixed so can you re-apply the "3-lines-only" of the remaining patch?

Thank you.

what patch do you want applied and where?

None. It's all sorted now so no more changes are needed. Attribution is now shown correctly.

comment:16 Changed 2 years ago by bastiK

  • Resolution fixed deleted
  • Status changed from closed to reopened

see #6075

comment:17 Changed 2 years ago by bastiK

  • Summary changed from Missing attribution for OSM [patch] to Missing attribution for OSM

comment:18 Changed 2 years ago by stoecker

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:19 Changed 2 years ago by bastiK

Doesn't work for me, I can see no attribution for Mapnik or other OSM layers.

comment:20 Changed 2 years ago by stoecker

Works for SlippyMapChooser only currently. TMS layers are "hand-made" and thus have no attribution info. I will add this at the Maps page, so future users get the attribution (needs some server work for downwards compatibility before I can make the entries), but I have no idea how to fix this for the legacy entries.

NOTE: Slippymapchooser Mapnik/CycleMap and T@H aren't the same as TMS backgrounds. They get replaced internally for historic reasons.

comment:21 Changed 2 years ago by stoecker

In [4198/josm]:

fix #5911 - silently add attribution information also to old entries, may take some restarts to be done everywhere

comment:22 Changed 2 years ago by stoecker

NOTE: Refresh server maps list and probably one or two restarts and you should get attribution also for standard entries.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.