summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-19 13:20:55 -0500
committerEvan Prodromou <evan@status.net>2009-11-19 13:20:55 -0500
commit2723bee69f0f0a6d6471632dc2e10cdaaa224eff (patch)
treeca8a38c825fabe1f0a19beedd4899c3e6568095b
parent640bb39891c7e36886ff0cc3b2599e75f9c691be (diff)
add username and timestamp to map popup
-rw-r--r--plugins/Mapstraction/usermap.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Mapstraction/usermap.js b/plugins/Mapstraction/usermap.js
index 41bdb677b..3a1379b8d 100644
--- a/plugins/Mapstraction/usermap.js
+++ b/plugins/Mapstraction/usermap.js
@@ -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);
}