You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
232 lines
6.8 KiB
232 lines
6.8 KiB
markers = [
|
|
new Location(2, 35), // 0 Start of Southern Woodlands
|
|
new Location(71, 35),
|
|
new Location(71, 70),
|
|
new Location(205, 70),
|
|
new Location(205, 105),
|
|
new Location(140, 140), // 5
|
|
new Location(205, 172),
|
|
new Location(206, 207),
|
|
new Location(243, 207),
|
|
new Location(345, 140),
|
|
new Location(412, 140), // 10
|
|
new Location(310, 35),
|
|
new Location(448, 35),
|
|
new Location(515, 70),
|
|
new Location(585, 70),
|
|
new Location(585, 0), // 15
|
|
new Location(620, 35),
|
|
new Location(686, 0),
|
|
new Location(482, 172),
|
|
new Location(585, 172),
|
|
new Location(585, 208), // 20
|
|
new Location(140, 240),
|
|
new Location(140, 275),
|
|
new Location(175, 275),
|
|
new Location(140, 345),
|
|
new Location(105, 310), // 25
|
|
new Location(278, 376),
|
|
new Location(310, 343),
|
|
new Location(343, 308),
|
|
new Location(310, 275),
|
|
new Location(378, 376), // 30
|
|
new Location(413, 343),
|
|
new Location(446, 275),
|
|
new Location(446, 242),
|
|
new Location(548, 310),
|
|
new Location(582, 378),
|
|
new Location(582, 343), // 36 End of South Woodlands
|
|
new Location(74, 204), // 37 Start of Western Coast
|
|
new Location(132, 115),
|
|
new Location(190, 85),
|
|
new Location(280, 115), //40
|
|
new Location(308, 204),
|
|
new Location(336, 115),
|
|
new Location(367, 87),
|
|
new Location(394, 204),
|
|
new Location(394, 172), // 45
|
|
new Location(425, 204),
|
|
new Location(424, 145),
|
|
new Location(424, 57),
|
|
new Location(454, 0),
|
|
new Location(482, 57), // 50
|
|
new Location(482, 174),
|
|
new Location(510, 144),
|
|
new Location(540, 174),
|
|
new Location(570, 144),
|
|
new Location(570, 85),
|
|
new Location(660, 85), // 56 End of Western Coast
|
|
new Location(190, 0), // 57 Start of Island Core
|
|
new Location(160, 33),
|
|
new Location(220, 33),
|
|
new Location(343, 64), // 60
|
|
new Location(343, 95),
|
|
new Location(440, 95),
|
|
new Location(130, 127),
|
|
new Location(67, 157),
|
|
new Location(220, 157), // 65
|
|
new Location(250, 157),
|
|
new Location(95, 220),
|
|
new Location(65, 250),
|
|
new Location(285, 250),
|
|
new Location(190, 280), // 70
|
|
new Location(190, 280),
|
|
new Location(34, 343),
|
|
new Location(66, 376),
|
|
new Location(99, 405),
|
|
new Location(190, 405), // 75
|
|
new Location(33, 470),
|
|
new Location(99, 440),
|
|
new Location(66, 470),
|
|
new Location(285, 355),
|
|
new Location(315, 355),
|
|
new Location(407, 392), // 80
|
|
new Location(525, 348),
|
|
new Location(525, 315),
|
|
new Location(525, 280),
|
|
new Location(587, 280),
|
|
new Location(587, 310), // 85
|
|
new Location(587, 342),
|
|
new Location(618, 280),
|
|
new Location(651, 342),
|
|
new Location(618, 438),
|
|
new Location(557, 468), // 91 End of Island Core + Town
|
|
new Location(30, 0), // 92 Start of Northen Tundra
|
|
new Location(30, 30),
|
|
new Location(30, 390),
|
|
new Location(60, 360), // 95
|
|
new Location(60, 210),
|
|
new Location(90, 90),
|
|
new Location(150, 30),
|
|
new Location(150, 90),
|
|
new Location(150, 120), // 100
|
|
new Location(180, 60),
|
|
new Location(180, 150),
|
|
new Location(120, 210),
|
|
new Location(270, 60),
|
|
new Location(270, 0), // 105
|
|
new Location(330, 90),
|
|
new Location(360, 30),
|
|
new Location(480, 30),
|
|
new Location(480, 60),
|
|
new Location(450, 120), // 110
|
|
new Location(510, 120),
|
|
new Location(270, 180),
|
|
new Location(210, 240),
|
|
new Location(270, 270),
|
|
new Location(240, 330), // 115
|
|
new Location(180, 390),
|
|
new Location(390, 360),
|
|
new Location(450, 210),
|
|
new Location(480, 240),
|
|
new Location(510, 270), // 120
|
|
new Location(540, 270),
|
|
new Location(630, 240),
|
|
new Location(660, 300),
|
|
new Location(660, 330),
|
|
new Location(660, 360),
|
|
new Location(600, 390), // 126 End of N Tundra
|
|
new Location(30, 150), // 127 Start of E. Highlands
|
|
new Location(90, 150),
|
|
new Location(90, 180),
|
|
new Location(90, 210), // 130
|
|
new Location(30, 268),
|
|
new Location(60, 328),
|
|
new Location(90, 328),
|
|
new Location(210, 237),
|
|
new Location(240, 178), // 135
|
|
new Location(240, 118),
|
|
new Location(240, 237),
|
|
new Location(240, 270),
|
|
new Location(300, 30),
|
|
new Location(330, 150), // 140
|
|
new Location(300, 270),
|
|
new Location(360, 270),
|
|
new Location(330, 330),
|
|
new Location(360, 330),
|
|
new Location(390, 150), // 145
|
|
new Location(418, 88),
|
|
new Location(418, 358),
|
|
new Location(450, 358),
|
|
new Location(450, 390),
|
|
new Location(478, 58), // 150
|
|
new Location(478, 150),
|
|
new Location(478, 237),
|
|
new Location(507, 267),
|
|
new Location(538, 58),
|
|
new Location(538, 208), // 155
|
|
new Location(538, 390),
|
|
new Location(538, 30),
|
|
new Location(568, 30),
|
|
new Location(598, 60),
|
|
new Location(658, 0), // 160
|
|
new Location(688, 90),
|
|
new Location(658, 358),
|
|
new Location(688, 358), // 163 End of E. Highlands
|
|
new Location(63, 164), // 164 Start of other
|
|
new Location(-5, 297),
|
|
new Location(-5, 432),
|
|
new Location(150, 275),
|
|
new Location(95, 98),
|
|
new Location(127, 68), // 170
|
|
new Location(451, 96),
|
|
new Location(451, 194),
|
|
new Location(483, 68),
|
|
new Location(513, 0),
|
|
new Location(676, 355),
|
|
new Location(553, 302), // 175
|
|
new Location(583, 332),
|
|
new Location(678, 425),
|
|
new Location(678, 485),
|
|
new Location(461, 425),
|
|
new Location(398, 457), // 180
|
|
new Location(305, 365),
|
|
new Location(275, 365),
|
|
];
|
|
|
|
openMarkers = [0,4,6,7,10,19,23,22,25,28,30,34, //S Woodlands
|
|
39,40,47,49,52,53,54,55,56, //W Coast
|
|
59,60,75,76,77,79,82,83,84,89, //I Core
|
|
92,93,101,102,106,109,116,117,119,120,123, //N Tundra
|
|
127,129,134,136,142,147,151,152,153,156,159,160, //E Highlands
|
|
166,167,169,174,177,178,181, //Other
|
|
];
|
|
|
|
function drawMarkers(){
|
|
|
|
var sw = document.getElementById("swood");
|
|
var wc = document.getElementById("wcoast");
|
|
var ic = document.getElementById("core");
|
|
var nt = document.getElementById("ntun");
|
|
var eh = document.getElementById("ehigh");
|
|
var ot = document.getElementById("other");
|
|
|
|
|
|
for ( i = 0; i < markers.length; i++){
|
|
markers[i].elem = document.createElement("img");
|
|
markers[i].elem.setAttribute("src", "images/marker0.png");
|
|
markers[i].elem.setAttribute("class", "markera");
|
|
markers[i].elem.id = "marker " + i;
|
|
markers[i].elem.style.left = markers[i].x + "px";
|
|
markers[i].elem.style.top = markers[i].y + "px";
|
|
markers[i].elem.onclick = toggleMarker;
|
|
markers[i].elem.onmouseenter = showTooltip;
|
|
markers[i].elem.onmouseleave = hideTooltip;
|
|
if ( i < 37 ){
|
|
sw.appendChild(markers[i].elem);
|
|
} else if (( i >= 37 ) && ( i <= 56 )){
|
|
wc.appendChild(markers[i].elem);
|
|
} else if (( i >= 57 ) && ( i <= 91)){
|
|
ic.appendChild(markers[i].elem);
|
|
} else if (( i >= 92 ) && ( i <= 126 )){
|
|
nt.appendChild(markers[i].elem);
|
|
} else if (( i >= 127 ) && ( i <= 163 )){
|
|
eh.appendChild(markers[i].elem);
|
|
} else if (( i >= 164 ) && ( i <= 182 )){
|
|
ot.appendChild(markers[i].elem);
|
|
}
|
|
}
|
|
for ( i = 0; i < openMarkers.length; i++){
|
|
markers[openMarkers[i]].elem.setAttribute("class", "markerb");
|
|
}
|
|
} |