Template:Fragoria Map

From FragoriaWiki

(Difference between revisions)
Jump to: navigation, search
Line 67: Line 67:
setMarkers (map, dungeons);
setMarkers (map, dungeons);
 +
    infowindow = new google.maps.InfoWindow({
 +
                content: "Loading..."
 +
            });
 +
var FragotownMarker = new google.maps.Marker({
var FragotownMarker = new google.maps.Marker({
Line 111: Line 115:
var dungeons = [
var dungeons = [
-
['Dark Konungs Tomb',-89.128166,16.829451,2],
+
['Dark Konungs Tomb',-89.128166,16.829451,2,'Test'],
-
['Robbers Vault',-89.089905,47.766951,3],
+
['Robbers Vault',-89.089905,47.766951,3,'Test'],
-
['Savage Dens',-89.221718,29.309920,4],
+
['Savage Dens',-89.221718,29.309920,4,'Test'],
-
['Wolfs Lair',-89.931470,45.657576,5],
+
['Wolfs Lair',-89.931470,45.657576,5,'Test'],
-
['Castle Pantry',-89.870076,-49.527971,6],
+
['Castle Pantry',-89.870076,-49.527971,6,'Test'],
-
['Poisoned Spring',-89.848769,-88.551408,7],
+
['Poisoned Spring',-89.848769,-88.551408,7,'Test'],
-
['Robbers Camp',-88.900931,-51.901018,8],
+
['Robbers Camp',-88.900931,-51.901018,8,'Test'],
-
['Underwater Temple Grandmothers Cave',-87.884290,-87.760393,9],
+
['Underwater Temple Grandmothers Cave',-87.884290,-87.760393,9,'Test'],
-
['Yard of the Red Witch',-82.335838,-100.152971,10],
+
['Yard of the Red Witch',-82.335838,-100.152971,10,'Test'],
-
['Abandoned Bonekeep',-62.927026,-64.293596,11],
+
['Abandoned Bonekeep',-62.927026,-64.293596,11,'Test'],
-
['White Worms Lair',24.423564,-113.072893,12],
+
['White Worms Lair',24.423564,-113.072893,12,'Test'],
-
['Winter Castle',32.450837,-79.059221,13],
+
['Winter Castle',32.450837,-79.059221,13,'Test'],
-
['Gates of Night',65.319363,-104.108049,14],
+
['Gates of Night',65.319363,-104.108049,14,'Test'],
-
['Prison of the Ancient Gods',67.329878,-103.844377,15]
+
['Prison of the Ancient Gods',67.329878,-103.844377,15,'Test']
];  
];  
function setMarkers(map, locations) {
function setMarkers(map, locations) {
-
 
-
  var contentString = '<div id="content">'+
 
-
      '<div id="siteNotice">'+
 
-
      '</div>'+
 
-
      '<h1 id="firstHeading" class="firstHeading">Uluru</h1>'+
 
-
      '<div id="bodyContent">'+
 
-
      '<p><b>Uluru</b>, also referred to as <b>Ayers Rock</b>, is a large ' +
 
-
      'sandstone rock formation in the southern part of the '+
 
-
      'Northern Territory, central Australia. It lies 335&#160;km (208&#160;mi) '+
 
-
      'south west of the nearest large town, Alice Springs; 450&#160;km '+
 
-
      '(280&#160;mi) by road. Kata Tjuta and Uluru are the two major '+
 
-
      'features of the Uluru - Kata Tjuta National Park. Uluru is '+
 
-
      'sacred to the Pitjantjatjara and Yankunytjatjara, the '+
 
-
      'Aboriginal people of the area. It has many springs, waterholes, '+
 
-
      'rock caves and ancient paintings. Uluru is listed as a World '+
 
-
      'Heritage Site.</p>'+
 
-
      '<p>Attribution: Uluru, <a href="https://en.wikipedia.org/w/index.php?title=Uluru&oldid=297882194">'+
 
-
      'https://en.wikipedia.org/w/index.php?title=Uluru</a> '+
 
-
      '(last visited June 22, 2009).</p>'+
 
-
      '</div>'+
 
-
      '</div>';
 
-
 
-
  var myinfowindow = new google.maps.InfoWindow({
 
-
      content: contentString
 
-
  });
 
var dungeonimage = {
var dungeonimage = {
url: '/wiki/images/f/f7/Greendungeonicon.png',
url: '/wiki/images/f/f7/Greendungeonicon.png',
Line 172: Line 151:
shape: shape,
shape: shape,
title: dungeon[0],
title: dungeon[0],
-
infowindow: myinfowindow,
+
                html: dungeon[4],
zIndex: dungeon[3]
zIndex: dungeon[3]
});
});
-
}
 
 +
            var contentString = "Some content";
 +
            google.maps.event.addListener(marker, "click", function () {
 +
                alert(this.html);
 +
                infowindow.setContent(this.html);
 +
                infowindow.open(map, this);
 +
            });
-
google.maps.event.addListener(marker, 'click', function() {
 
-
        this.infowindow.open(map, this);
 
-
});
+
}
 +
 
}
}

Revision as of 23:11, 6 April 2015

Fragoria Map

 

Personal tools
Date/Time
Server & Cross

Super-Cross Server