From GamingWiki
Jump to: navigation, search
Line 19: Line 19:
 
var geocoder;
 
var geocoder;
 
var map;
 
var map;
 +
var infowindow;
  
 
function initialize() {
 
function initialize() {
Line 39: Line 40:
 
function addMarker(latlng, title, description) {
 
function addMarker(latlng, title, description) {
 
var marker = new google.maps.Marker({position:latlng, map: map, title:title});
 
var marker = new google.maps.Marker({position:latlng, map: map, title:title});
var infowindow = new google.maps.InfoWindow({
+
infowindow = new google.maps.InfoWindow({
 
content: "<div class=\"mapmarker\">\n" + description + "\n</div>"
 
content: "<div class=\"mapmarker\">\n" + description + "\n</div>"
 
});
 
});
Line 101: Line 102:
  
 
// Tir nan Og
 
// Tir nan Og
addMarkerByAddress("200 Ontario St Kingston Ontario K7L 2Y9","Tir Nan Og Irish Pub","{{GhostTown/Map/Tir_nan_Og}}");
+
addMarkerByAddress("200 Ontario St Kingston Ontario K7L 2Y9","Tir Nan Og Irish Pub",$(descTirNanOg));
 
}
 
}
  
 
// --></script>
 
// --></script>
 
</html>
 
</html>
 +
<div style="display:none" id="locationdescriptions">
 +
<div id="descTirNanOg">Here is a description in a div. [[Woohoo]].</div>
 +
</div>
 
</includeonly>
 
</includeonly>

Revision as of 01:37, 25 October 2010