This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.
Talk:The map: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Admin No edit summary |
imported>Orne scripts |
||
| Line 6: | Line 6: | ||
*I'm pretty sure the JavaScript won't work here by default (security risk), but post the JavaScript here when you get it and I'll try to get it to work. Nice idea. ([[User:Admin|Admin]] 13:24, 11 November 2006 (EST)) |
*I'm pretty sure the JavaScript won't work here by default (security risk), but post the JavaScript here when you get it and I'll try to get it to work. Nice idea. ([[User:Admin|Admin]] 13:24, 11 November 2006 (EST)) |
||
** Here's how it's supposed to work: |
|||
<PRE> |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|||
<head> |
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> |
|||
<title>Google Maps JavaScript API Example</title> |
|||
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAiCW28PGeUotmpp-q2qobYRTOo-LjVs7bKhT0TzJTCVcYlN6vhBRIGVrDZ4Jch5LY1y0i-sV6AcdTog" |
|||
type="text/javascript"></script> |
|||
<script type="text/javascript"> |
|||
//<![CDATA[ |
|||
function load() { |
|||
if (GBrowserIsCompatible()) { |
|||
var map = new GMap2(document.getElementById("map")); |
|||
map.addControl(new GSmallMapControl()); |
|||
map.addControl(new GMapTypeControl()); |
|||
map.setCenter(new GLatLng(37.4419, -122.1419), 13); |
|||
} |
|||
} |
|||
//]]> |
|||
</script> |
|||
</head> |
|||
<body onload="load()" onunload="GUnload()"> |
|||
<div id="map" style="width: 500px; height: 300px"></div> |
|||
</body> |
|||
</html> |
|||
</PRE> |
|||
The load function is where all the action happens. That's where you add the Markers, etc. From what I read, it appears that all of the editing needs to happen in that function. I'm going to try experimenting on my Comcast home page for a bit... --[[User:Orne|Orne]] 13:30, 11 November 2006 (EST) |
|||
Revision as of 18:30, 11 November 2006
Google Maps
I'm signing us up for Google Maps to start tracking some of the dots on the map. The code uses JavaScript, so I'm not sure if it is compatible with Wiki, but I won't know until I try. API documentation is here, FAQ documentation is here
- Page Folder = http://heroeswiki.com/
- API Key = ABQIAAAAiCW28PGeUotmpp-q2qobYRTOo-LjVs7bKhT0TzJTCVcYlN6vhBRIGVrDZ4Jch5LY1y0i-sV6AcdTog
--Orne 13:21, 11 November 2006 (EST)
- I'm pretty sure the JavaScript won't work here by default (security risk), but post the JavaScript here when you get it and I'll try to get it to work. Nice idea. (Admin 13:24, 11 November 2006 (EST))
- Here's how it's supposed to work:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAiCW28PGeUotmpp-q2qobYRTOo-LjVs7bKhT0TzJTCVcYlN6vhBRIGVrDZ4Jch5LY1y0i-sV6AcdTog"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px"></div>
</body>
</html>
The load function is where all the action happens. That's where you add the Markers, etc. From what I read, it appears that all of the editing needs to happen in that function. I'm going to try experimenting on my Comcast home page for a bit... --Orne 13:30, 11 November 2006 (EST)