The Wiki for Tale 6 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

User:Sneferu/Marble and dowsing

From ATITD6
Jump to navigationJump to search



// Create an object containing LatLng. var Marblemap = {}; Marblemap['marble'] = {

 center: new google.maps.LatLng(2000, 1600),

} var marbleCircle;

function initialize() {

 var mapOptions = {
   zoom: 8,
   center: new google.maps.LatLng(2000, 1600),
   mapTypeId: google.maps.MapTypeId.TERRAIN
 };
 var map = new google.maps.Map(document.getElementById('map-canvas'),
     mapOptions);
 for (var city in citymap) {
   // Construct the circle for each value in citymap. We scale population by 20.
   var populationOptions = {
     strokeColor: '#FF0000',
     strokeOpacity: 0.8,
     strokeWeight: 2,
     fillColor: '#FF0000',
     fillOpacity: 0.35,
     map: map,
     center: citymap[city].center,
     radius: citymap[city].population / 20
   };
   cityCircle = new google.maps.Circle(populationOptions);
 }

}

google.maps.event.addDomListener(window, 'load', initialize);