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.
This commit is contained in:
parent
b0c589de9a
commit
634752f0d2
|
@ -104,7 +104,7 @@ function showMapstraction(element, notices) {
|
||||||
pt = new mxn.LatLonPoint(lat, lon);
|
pt = new mxn.LatLonPoint(lat, lon);
|
||||||
mkr = new mxn.Marker(pt);
|
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'] +
|
mkr.setInfoBubble('<a href="'+ n['user']['profile_url'] + '">' + n['user']['screen_name'] + '</a>' + ' ' + n['html'] +
|
||||||
'<br/><a href="'+ n['url'] + '">'+ n['created_at'] + '</a>');
|
'<br/><a href="'+ n['url'] + '">'+ n['created_at'] + '</a>');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user