103 lines
No EOL
3.7 KiB
Text
103 lines
No EOL
3.7 KiB
Text
var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
|
|
let window = _____WB$wombat$assign$function_____("window");
|
|
let self = _____WB$wombat$assign$function_____("self");
|
|
let document = _____WB$wombat$assign$function_____("document");
|
|
let location = _____WB$wombat$assign$function_____("location");
|
|
let top = _____WB$wombat$assign$function_____("top");
|
|
let parent = _____WB$wombat$assign$function_____("parent");
|
|
let frames = _____WB$wombat$assign$function_____("frames");
|
|
let opens = _____WB$wombat$assign$function_____("opens");
|
|
jQuery(function($) {
|
|
// Asynchronously Load the map API
|
|
var script = document.createElement('script');
|
|
script.src = "https://web.archive.org/web/20230226025550/https://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize";
|
|
document.body.appendChild(script);
|
|
});
|
|
|
|
function initialize() {
|
|
var map;
|
|
var bounds = new google.maps.LatLngBounds();
|
|
var mapOptions = {
|
|
mapTypeId: 'roadmap'
|
|
};
|
|
|
|
// Display a map on the page
|
|
map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
|
|
map.setTilt(45);
|
|
|
|
// Multiple Markers
|
|
var markers = [
|
|
['Navi Mumbai, India', 19.0248827,73.0419114],
|
|
['Visakhapatnam, India', 17.7390479,82.9816247],
|
|
['Surat, India', 21.1594692,72.6819925],
|
|
['China Town, Singapore', 1.3150701,103.7065852]
|
|
];
|
|
|
|
// Info Window Content
|
|
var infoWindowContent = [
|
|
['<div class="info_content">' +
|
|
'<h3>Belapur</h3>' +
|
|
'<p>Navi Mumbai</p>' + '</div>'],
|
|
['<div class="info_content">' +
|
|
'<h3>Visakhapatnam</h3>' +
|
|
'<p>Andhra Pradesh</p>' +
|
|
'</div>'],
|
|
['<div class="info_content">' +
|
|
'<h3>Surat</h3>' +
|
|
'<p>India</p>' +
|
|
'</div>'],
|
|
['<div class="info_content">' +
|
|
'<h3>Singapore</h3>' +
|
|
'<p>China Town</p>' +
|
|
'</div>']
|
|
];
|
|
|
|
// Display multiple markers on a map
|
|
var infoWindow = new google.maps.InfoWindow(), marker, i;
|
|
|
|
// Loop through our array of markers & place each one on the map
|
|
for( i = 0; i < markers.length; i++ ) {
|
|
var position = new google.maps.LatLng(markers[i][1], markers[i][2]);
|
|
bounds.extend(position);
|
|
marker = new google.maps.Marker({
|
|
position: position,
|
|
map: map,
|
|
title: markers[i][0]
|
|
});
|
|
|
|
// Allow each marker to have an info window
|
|
google.maps.event.addListener(marker, 'click', (function(marker, i) {
|
|
return function() {
|
|
infoWindow.setContent(infoWindowContent[i][0]);
|
|
infoWindow.open(map, marker);
|
|
}
|
|
})(marker, i));
|
|
|
|
// Automatically center the map fitting all markers on the screen
|
|
map.fitBounds(bounds);
|
|
}
|
|
|
|
// Override our map zoom level once our fitBounds function runs (Make sure it only runs once)
|
|
var boundsListener = google.maps.event.addListener((map), 'bounds_changed', function(event) {
|
|
this.setZoom(8);
|
|
google.maps.event.removeListener(boundsListener);
|
|
});
|
|
|
|
}
|
|
}
|
|
|
|
/*
|
|
FILE ARCHIVED ON 02:55:50 Feb 26, 2023 AND RETRIEVED FROM THE
|
|
INTERNET ARCHIVE ON 19:45:12 May 18, 2026.
|
|
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
|
|
|
|
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
|
|
SECTION 108(a)(3)).
|
|
*/
|
|
/*
|
|
playback timings (ms):
|
|
capture_cache.get: 0.551
|
|
load_resource: 70.111
|
|
PetaboxLoader3.resolve: 24.326
|
|
PetaboxLoader3.datanode: 34.104
|
|
*/ |