]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add username and timestamp to map popup
authorEvan Prodromou <evan@status.net>
Thu, 19 Nov 2009 18:20:55 +0000 (13:20 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 19 Nov 2009 18:20:55 +0000 (13:20 -0500)
plugins/Mapstraction/usermap.js

index 41bdb677b474865f7424c5758056c15ea4f35f80..3a1379b8d4029c70616352d4493efd865c0c6692 100644 (file)
@@ -32,8 +32,10 @@ $(document).ready(function() {
           pt = new mxn.LatLonPoint(lat, lon);
           mkr = new mxn.Marker(pt);
 
+          mkr.setLabel();
           mkr.setIcon(n['user']['profile_image_url']);
-          mkr.setInfoBubble(n['html']);
+          mkr.setInfoBubble('<a href="'+ n['user']['profile_url'] + '">' + n['user']['screen_name'] + '</a>' + ' ' + n['html'] +
+                            '<br/><a href="'+ n['url'] + '">'+ n['created_at'] + '</a>');
 
           mapstraction.addMarker(mkr);
      }