anushani / atlasmapper

Automatically exported from code.google.com/p/atlasmapper
0 stars 0 forks source link

Applying 1.4.8 configuration to older client (with downloadLinks) breaks layers description #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a downloadLinks to the Layer's global manual override  of a layer such 
as: 
"downloadLinks": 
{"http://earthenginepartners.appspot.com/science-2013-global-forest/download.htm
l": "Global Forest Change 2000-2012 Data Download"}
2. On a older client than version 1.4.8, Regenerate the client using "Minimal".
3. Look at the layer in the with the download link. 

What is the expected output? What do you see instead?
The description of the layer with the download shows as "Loading...". The 
reason is that the configuration format for the downloadLinks changed from a 
string to an object in version 1.4.8 causing a Javascript error in the old 
client.

What version of the product are you using? On what operating system?
1.4.8

Please provide any additional information below.
This problem should be fixed by adding a some information to the client such as 
its version number so that the AtlasMapper admin can detect that the client is 
older then the current version. It could then offer to upgrade the client if 
needed. This will remove the need to have the current two buttons of "Minimal" 
and "Complete".

Original issue reported on code.google.com by eric.law...@gmail.com on 21 Feb 2014 at 6:14