Ignore:
Timestamp:
Dec 5, 2013, 9:35:51 PM (10 years ago)
Author:
rvelices
Message:

rv_gmaps improvements on mobile/tablets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/template/data_handler.js

    r21892 r25792  
    212212buildCurrentPictureHtml: function( marker )
    213213{
    214         var imageDetail = marker.pwg.images[marker.currentImageIndex];
     214        var imageDetail = marker.pwg.images[marker.currentImageIndex],
     215                dpr = window.devicePixelRatio || 1,
     216                w = Math.round(imageDetail.w/dpr),
     217                h = Math.round(imageDetail.h/dpr);
     218       
    215219        var res = "";
    216         res += '<div class="gmiw_imageTitle">' + imageDetail.name + "</div>";
     220        res += '<div class="gmiw_imageTitle">' + imageDetail.t + "</div>";
    217221        res +=
    218222'<div class="gmiw_imageContent">' +
    219223'<div class="gmiw_imageWrap">'+
    220   '<a href="'+imageDetail.page_url+'">' +
    221   '<img src="' + imageDetail.tn + '" alt="thumb" />'+
     224  '<a href="'+imageDetail.url+'">' +
     225  '<img src="' + imageDetail.tn + '" alt="thumb" width='+w+' height='+h+'>'+
    222226'</a></div>' +
    223 '<div class="gmiw_imageComment">' + imageDetail.comment + '</div>' +
     227'<div class="gmiw_imageComment">' + imageDetail.d + '</div>' +
    224228'</div>';
    225229        return res;
Note: See TracChangeset for help on using the changeset viewer.