Removed irrevalent code that I forgot to remember from NarrativeWeb.
svn: r18500
This commit is contained in:
parent
99d42f6091
commit
a7619cbd2e
@ -4970,7 +4970,6 @@ class IndividualPage(BasePage):
|
|||||||
midX_, midY_ = conv_lat_lon(place_lat_long[0][0], place_lat_long[0][1], "D.D8")
|
midX_, midY_ = conv_lat_lon(place_lat_long[0][0], place_lat_long[0][1], "D.D8")
|
||||||
|
|
||||||
jsc += """
|
jsc += """
|
||||||
//<![CDATA[
|
|
||||||
var centre = new google.maps.LatLng(%s, %s);""" % (midX_, midY_)
|
var centre = new google.maps.LatLng(%s, %s);""" % (midX_, midY_)
|
||||||
jsc += """
|
jsc += """
|
||||||
var myCoordinates = ["""
|
var myCoordinates = ["""
|
||||||
@ -5016,28 +5015,10 @@ class IndividualPage(BasePage):
|
|||||||
animation: google.maps.Animation.DROP
|
animation: google.maps.Animation.DROP
|
||||||
}));
|
}));
|
||||||
iterator++;
|
iterator++;
|
||||||
}
|
}""" % zoomlevel
|
||||||
//]]>""" % zoomlevel
|
|
||||||
# there is no need to add an ending "</script>",
|
# there is no need to add an ending "</script>",
|
||||||
# as it will be added automatically by libhtml()!
|
# as it will be added automatically by libhtml()!
|
||||||
|
|
||||||
dont = """
|
|
||||||
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
|
|
||||||
function setMarkers(map, locations) {
|
|
||||||
var bounds = new google.maps.LatLngBounds();
|
|
||||||
for (var i = 0; i < locations.length; i++) {
|
|
||||||
var coordinates = locations[i];
|
|
||||||
|
|
||||||
var myLatLng = new google.maps.LatLng(coordinates[1], coordinates[2]);
|
|
||||||
var marker = new google.maps.Marker({
|
|
||||||
position: myLatLng,
|
|
||||||
map: map,
|
|
||||||
title: coordinates[0]
|
|
||||||
});
|
|
||||||
bounds.extend(locations[i]);
|
|
||||||
map.fitBounds(bounds);
|
|
||||||
}"""
|
|
||||||
|
|
||||||
with Html("div", class_ ="content", id ="FamilyMapDetail") as mapbackground:
|
with Html("div", class_ ="content", id ="FamilyMapDetail") as mapbackground:
|
||||||
body += mapbackground
|
body += mapbackground
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user