User:Ssamples/sandbox

SOUTHERN POLYTECHNIC STATE UNIVERSITY INFORMATION TECHNOLOGY DEPARTMENT

1100 South Marietta Parkway | Marietta, GA 30060-2896 Office: (678) 915-4292 | Fax: (678) 915-5511

 article This widget allows you to add Google Maps widget to your wiki page.

Created by Sergey Chernyshev

Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as  article.   google.load("maps", "2.s"); // Call this function when the page has been loaded google.setOnLoadCallback(function {	if (google.maps.BrowserIsCompatible) {		var center = new GLatLng(, );		// Create and Center a Map		var map = new google.maps.Map2(document.getElementById("map"), {size: new google.maps.Size(, )} );		map.setCenter(center, 13);		map.setZoom(Number(''));		map.enableScrollWheelZoom;

var createMarker = function(markerLatLng,MarkerTitle,markerIcon,markerPopup) { var marker=new google.maps.Marker(markerLatLng,{title:MarkerTitle,icon:markerIcon}); if (markerPopup) { GEvent.addListener(marker, "click", function {					marker.openInfoWindowHtml(markerPopup);				}); }			return marker; }			var markerIcon=new GIcon(G_DEFAULT_ICON); markerIcon.image="http://www.google.com/mapfiles/marker.png"; markerIcon.image=''; var markerLatLng = new GLatLng(, ); var markerPopup=""; markerPopup=''; var marker = new createMarker(markerLatLng,'',markerIcon,markerPopup); map.addOverlay(marker); map.addOverlay(new GGeoXml('')); map.addOverlay(new google.maps.Marker(center)); map.addControl(new GMapTypeControl); map.addControl(new GLargeMapControl); map.addControl(new GSmallMapControl); map.addControl(new GSmallZoomControl); map.addControl(new GScaleControl); map.addControl(new GOverviewMapControl); map.addControl(new GHierarchicalMapTypeControl); map.setMapType(G_SATELLITE_MAPG_HYBRID_MAPG_NORMAL_MAP);

} }); 


 * SPSU Homepage
 * SPSU IT Department Home