ERROR
The following error message is returned in the Park and Recreation Finder application when one of the 'Share this map' options (Facebook, Twitter, or email) is clicked.
Note:
This error applies to the Park and Recreation Finder (ArcGIS 10) download.
The share map options in the Park and Recreation Finder use a URL-compacting service called json-tinyurl.appspot.com. This service can fail when it reaches one of its daily quotas. When this happens, the share map feature fails until the service's usage counts are reset at 12:00 AM the next day.
Code:
"URL": "http://json-tinyurl.appspot.com/?url=${0}" , "ResponseAttribute": "tinyurl",
Code:
"URL": "http://api.bit.ly/v3/shorten?login=esri&apiKey=R_65fd9891cd882e2a96b99d4bda1be00e&uri=${0}&format=json" , "ResponseAttribute": "data.url",
Code:
var tinyUrl = data[tinyURLServiceURL.ResponseAttribute];
Code:
var tinyUrl = data;
// Follow a chain of nested attributes if necessary
var attr = tinyURLServiceURL.ResponseAttribute.split(".");
for (var x = 0; x < attr.length; x++) {
tinyUrl = tinyUrl[attr[x]];
}
Get help from ArcGIS experts
Download the Esri Support App