Modify

#6893 closed enhancement (fixed)

[Patch] Add attribution getters to ImageryInfo

Reported by: Don-vip Owned by: team
Priority: minor Component: Core
Version: latest Keywords:
Cc:

Description

I need to access attribution fields of ImageryInfo from a plugin.
Please find attached a patch that adds the needed getters.

I am currently accessing them in a very dirty way :D

			TMSTileSource tms = new TMSTileSource(null, null, 0);
			imagery.setAttribution(tms);
			... tms.getAttributionText(0, null, null));//FIXME
			... tms.getAttributionLinkURL());//FIXME
			... tms.getTermsOfUseURL());//FIXME

Attachments (1)

patch.diff (965 bytes) - added by Don-vip 20 months ago.

Download all attachments as: .zip

Change History (2)

Changed 20 months ago by Don-vip

comment:1 Changed 20 months ago by simon04

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

In [4464/josm]:

fix #6893 - add attribution getters to ImageryInfo (patch by Don-vip)

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.