using open street map now instead

This commit is contained in:
Jeena Paradies 2013-01-14 21:52:38 +01:00
parent 94e003f345
commit 035390dbc3

View file

@ -351,7 +351,8 @@ function(jQuery, Paths, URI, HostApp, Cache) {
// {"type":"Point","coordinates":[57.10803113,12.25854746]}
if (status.content && status.content.location && (typeof status.content.location.type == "undefined" || status.content.location.type == "Point")) {
template.geo.href = "http://maps.google.com/maps?q=" + status.content.location.coordinates[0] + "," + status.content.location.coordinates[1];
var href = "http://www.openstreetmap.org/?mlat=" + status.content.location.coordinates[0] + "&mlon=" + status.content.location.coordinates[1] + "&zoom=12"
template.geo.href = href;
template.geo.style.display = "";
}
@ -376,10 +377,11 @@ function(jQuery, Paths, URI, HostApp, Cache) {
var reposted_count = $(post).find(".reposted_by ul li").length + 1;
var a = $("<a/>");
if (reposted_count == 1) {
$(post).find(".reposted_by").show();
var a = $("<a/>");
a.attr("href", repost.entity);
a.attr("title", repost.entity);
a.html(repost.entity);
@ -393,7 +395,6 @@ function(jQuery, Paths, URI, HostApp, Cache) {
$(post).find(".reposted_by").show();
var li = $("<li/>");
var a = $("<a/>");
a.attr("href", repost.entity);
a.attr("title", repost.entity);
a.html(repost.entity);