create function to get portal image URL from details - and perform any necessary default URL replacement and https conversion

This commit is contained in:
Jon Atkins
2013-08-27 18:16:02 +01:00
parent 563258a897
commit 81d0cb0ed8
4 changed files with 22 additions and 7 deletions

View File

@ -44,7 +44,7 @@ window.renderPortalDetails = function(guid) {
var resoDetails = '<table id="resodetails">' + getResonatorDetails(d) + '</table>';
setPortalIndicators(d);
var img = d.imageByUrl.imageUrl;
var img = getPortalImageUrl(d);
var lat = d.locationE6.latE6/1E6;
var lng = d.locationE6.lngE6/1E6;
var perma = '/intel?ll='+lat+','+lng+'&z=17&pll='+lat+','+lng;