Added marker.setInfoBubble() back into Place Map, and adjusted font of the div#geo-info to a more readable size.

svn: r15576
This commit is contained in:
Rob G. Healey 2010-06-17 05:21:00 +00:00
parent c5f30ccc3a
commit 24978e4ba6
2 changed files with 7 additions and 8 deletions

View File

@ -38,8 +38,11 @@ div#middle {
margin: 10px 0px 10px 0px;
padding: 0% 20% 0% 20%;
}
div#middle div#geo-info {
font: bold 6px sans-serif;
/* geo-info bubble
------------------------------------------------- */
div#geo-info {
font: bold 11px sans-serif;
}
/* GoogleV3

View File

@ -403,16 +403,12 @@ class BasePage(object):
// put map on page
map.setCenterAndZoom(latlon, 9);
var point;
var points = []
point = new mxn.LatLonPoint(latlon);
points.push(point);
// add marker
var marker;
marker = new mxn.Marker(latlon);
marker.setInfoBubble('<div id = "geo-info" >%s</div>'); """ % place_title
jsc += """
// add marker to map
map.addMarker(marker, true);
}