summaryrefslogtreecommitdiff
path: root/plugins/Mapstraction
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-06-01 18:41:17 +0000
committerBrion Vibber <brion@pobox.com>2010-06-01 18:41:17 +0000
commit634752f0d262b4fb02456889250378fca084cd2e (patch)
tree69abb3f3335490276f55771698cb8e90f883318b /plugins/Mapstraction
parentb0c589de9aa7bfd41bd59e12ff16d0791009fb18 (diff)
Mapstraction plugin fix: set icon dimensions (24x24 px); Google Maps provider otherwise defaults to stretching them to a funny shape instead of showing square avatars.
Diffstat (limited to 'plugins/Mapstraction')
-rw-r--r--plugins/Mapstraction/usermap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Mapstraction/usermap.js b/plugins/Mapstraction/usermap.js
index 4b7a6c26b..53cfe6bb0 100644
--- a/plugins/Mapstraction/usermap.js
+++ b/plugins/Mapstraction/usermap.js
@@ -104,7 +104,7 @@ function showMapstraction(element, notices) {
pt = new mxn.LatLonPoint(lat, lon);
mkr = new mxn.Marker(pt);
- mkr.setIcon(n['user']['profile_image_url']);
+ mkr.setIcon(n['user']['profile_image_url'], [24, 24]);
mkr.setInfoBubble('<a href="'+ n['user']['profile_url'] + '">' + n['user']['screen_name'] + '</a>' + ' ' + n['html'] +
'<br/><a href="'+ n['url'] + '">'+ n['created_at'] + '</a>');