Modify

Opened 13 years ago

Closed 13 years ago

#6893 closed enhancement (fixed)

[Patch] Add attribution getters to ImageryInfo

Reported by: Don-vip Owned by: team
Priority: minor Milestone:
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 13 years ago.

Download all attachments as: .zip

Change History (2)

by Don-vip, 13 years ago

Attachment: patch.diff added

comment:1 by simon04, 13 years ago

Resolution: fixed
Status: newclosed

In [4464/josm]:

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.