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

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>Orne
scripts
imported>Orne
Google Maps: cleanup, replace w/ commentary
Line 1: Line 1:
==Google Maps==
==Interactive Map==
Welcome to the instructions for the Interactive Map. The map is coded with JavaScript using the [http://www.google.com/apis/maps/documentation/ Google Maps API] (v2), with custom code supporting rendering from XML. Please feel free to poke around the map, as we work to discover the meaning of the strings and pins. --[[User:Orne|Orne]] 15:24, 13 November 2006 (EST)
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 [http://www.google.com/apis/maps/documentation here], FAQ documentation is [http://www.google.com/apis/maps/faq.html here]
: Page Folder = http://heroeswiki.com/
: API Key = ABQIAAAAiCW28PGeUotmpp-q2qobYRTOo-LjVs7bKhT0TzJTCVcYlN6vhBRIGVrDZ4Jch5LY1y0i-sV6AcdTog
--[[User:Orne|Orne]] 13:21, 11 November 2006 (EST)


===Adding Content===
*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))
If/when new pushpins are revealed in the show, please communicate the new information here, and I will incorporate them into the XML file as soon as possible.
** Here's how it's supposed to work:


'''Data Format''': Please include the following detail items if/when you request new content to add to the map
<PRE>
* '''Marker''': 'Latitude' as numeric, 'Longitude' as numeric, 'Color' as text, optional 'HeroesWiki page' as text
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
* '''Line''': 'Start Marker' as text, 'End Marker' as text, Color as text
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
: The Line will be drawn from the Start Marker to End Marker in a West to East direction
<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&amp;v=2&amp;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>


'''Finding Lat/Long Numerics''': Left click on the map at the desired location at the map, and the API will create a new marker on the map. Left click the marker and copy the Lat/Long from the information pop-up window.
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)

===Request to Add Content===
Enter data to this section; items will be removed if/when they are added to the map.

Revision as of 20:24, 13 November 2006

Interactive Map

Welcome to the instructions for the Interactive Map. The map is coded with JavaScript using the Google Maps API (v2), with custom code supporting rendering from XML. Please feel free to poke around the map, as we work to discover the meaning of the strings and pins. --Orne 15:24, 13 November 2006 (EST)

Adding Content

If/when new pushpins are revealed in the show, please communicate the new information here, and I will incorporate them into the XML file as soon as possible.

Data Format: Please include the following detail items if/when you request new content to add to the map

  • Marker: 'Latitude' as numeric, 'Longitude' as numeric, 'Color' as text, optional 'HeroesWiki page' as text
  • Line: 'Start Marker' as text, 'End Marker' as text, Color as text
The Line will be drawn from the Start Marker to End Marker in a West to East direction

Finding Lat/Long Numerics: Left click on the map at the desired location at the map, and the API will create a new marker on the map. Left click the marker and copy the Lat/Long from the information pop-up window.

Request to Add Content

Enter data to this section; items will be removed if/when they are added to the map.