-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.html
597 lines (572 loc) · 30.1 KB
/
map.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title></title>
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
#panel {
position: absolute;
top: 5px;
left: 50%;
margin-left: -180px;
z-index: 5;
background-color: #fff;
padding: 5px;
border: 1px solid #999;
}
</style>
<script
src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=false"></script>
<script>
var geocoder;
var map;
var directionsDisplay;
var infowindow = null;
var directionsService = new google.maps.DirectionsService();
function initialize() {
// Change a few 'var variableName' to 'window.' This lets us set global variables from within our function
var colors = ["#8b0013", "#f1c40f", "#131355"]
directionsDisplay = new google.maps.DirectionsRenderer(
{
polylineOptions : {
strokeColor : "#118b11"
}
});
geocoder = new google.maps.Geocoder();
var latlng = new google.maps.LatLng(20., 50.);
var mapOptions = {
zoom : 3,
center : latlng,
mapTypeControlOptions: {
mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map']
},
styles: [
{
"featureType": "administrative",
"elementType": "labels",
"stylers": [
{
"visibility": "off"
},
{
"color": "#000000"
},
{
"lightness": 25
}
]
},
/* {
"featureType": "administrative.country",
"elementType": "labels",
"stylers": [
{
"visibility": "simplified"
},
{
"color": "#000000"
},
{
"lightness": 25
},
{
"minZoom": 5
}
,
{
"maxZoom": 6
}
]
}, */
{
"featureType": "administrative.neighborhood",
"elementType": "labels.text",
"stylers": [
{
"visibility": "simplified"
},
{
"color": "#000000"
},
{
"lightness": 25
}
]
},
{
"featureType": "landscape.man_made",
"elementType": "all",
"stylers": [
{
"visibility": "on"
},
{
"color": "#000000"
},
{
"lightness": 0
}
]
},
{
"featureType": "landscape.natural.landcover",
"elementType": "all",
"stylers": [
{
"visibility": "on"
},
{
"color": "#ffffff"
}
]
},
{
"featureType": "landscape.natural.landcover",
"elementType": "all",
"stylers": [
{
"color": "#ffffff"
}
]
},
{
"featureType": "poi",
"elementType": "all",
"stylers": [
{
"visibility": "off"
},
{
"color": "#e2ebdb"
}
]
},
{
"featureType": "poi.park",
"elementType": "geometry.fill",
"stylers": [
{
"visibility": "on"
},
{
"color": "#6b9479"
},
{
"saturation": -1
},
{
"lightness": 40
}
]
},
{
"featureType": "road.highway",
"elementType": "labels",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "road.highway",
"elementType": "labels.text",
"stylers": [
{
"visibility": "simplified"
},
{
"color": "#9c9c9c"
},
{
"weight": 0.2
}
]
},
{
"featureType": "road.highway",
"elementType": "geometry",
"stylers": [
{
"color": "#e2e2e2"
},
{
"weight": 0.4
}
]
},
{
"featureType": "road.arterial",
"elementType": "geometry",
"stylers": [
{
"color": "#e2e2e2"
},
{
"weight": 0.2
}
]
},
{
"featureType": "road.local",
"elementType": "geometry",
"stylers": [
{
"color": "#e2e2e2"
},
{
"weight": 0.1
}
]
},
{
"featureType": "road.arterial",
"elementType": "labels.text",
"stylers": [
{
"color": "#9c9c9c"
}
]
},
{
"featureType": "road.arterial",
"elementType": "labels.text.stroke",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "road",
"elementType": "labels.icon",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "water",
"elementType": "geometry",
"stylers": [
{
"visibility": "on"
},
{
"color": "#2980b9"
},
{
"saturation": 0
},
{
"lightness": 0
}
]
},
{
"featureType": "water",
"elementType": "labels",
"stylers": [
{
"visibility": "simplified"
},
{
"color": "#000000"
}
]
},
{
"featureType": "transit",
"elementType": "all",
"stylers": [
{
"visibility": "off"
},
{
"color": "#ffffff"
}
]
},
{
"featureType": "poi.medical",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#000000"
},
{
"lightness": 77
}
]
},
{
"featureType": "poi.school",
"elementType": "geometry.fill",
"stylers": [
{
"visibility": "on"
},
{
"color": "#000000"
},
{
"lightness": 92
}
]
},
{
"featureType": "road.local",
"elementType": "labels.text",
"stylers": [
{
"visibility": "simplified"
},
{
"color": "#9c9c9c"
}
]
}
]
}
map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
/* now inside your initialise function */
infowindow = new google.maps.InfoWindow({
content : "holding..."
});
// Set the current route - default: walking
//calcRoute();
setMarkers(map, stops);
//calcPlanAfrRoute();
// Render our directions on the map
directionsDisplay.setMap(map);
directionsDisplay.setOptions({
preserveViewport : true,
suppressMarkers : true
});
}
google.maps.event.addDomListener(window, 'load', initialize);
// Calculate our route between the markers & set/change the mode of travel
/*function calcRoute() {
var request = {
origin: "Cape Town, South Africa",
destination: "Dar Es Salaam, Tanzania",
waypoints: [
{location:"Windhoek, Namibia",
stopover:false},
{location:"Swakopmund, Namibia",
stopover:false},
{location:"Windhoek, Namibia",
stopover:false},
{location:"Maun, Botsuana",
stopover:false},
{location:"Kasane, Botsuana",
stopover:false},
{location:"Livingstone, Zambia",
stopover:false},
{location:"Lusaka, Zambia",
stopover:false},
{location:"Kapiri Mposhi, Zambia",
stopover:false}
],
travelMode: google.maps.TravelMode.DRIVING
};
directionsService.route(request, function(response, status) {
if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections(response);
}
});
}*/
function calcRoute() {
var request = {
origin : "Lüneburg, Germany",
destination : "Lisbon, Portugal",
/* waypoints: [
{location:"Udaipur, India",
stopover:false},
{location:"Jodhpur, India",
stopover:false},
{location:"Jaipur, India",
stopover:false}
], */
travelMode : google.maps.TravelMode.DRIVING
};
directionsService.route(request, function(response,
status) {
if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections(response);
}
});
}
/**
* Data for the markers consisting of a name, a LatLng and a zIndex for
* the order in which these markers should display on top of each
* other.
*/
var stops = [
[ 'Cape Town', -33.9248685, 18.4240553, 1,
'17.-21.04.', 'red' ],
[ 'Keetmanshoop', -26.578611, 18.133333, 2,
'22.04.', 'red' ],
[ 'Windhoek', -22.57, 17.083611, 3,
'22.-23.04. & 25.-26.04.', 'red' ],
[ 'Swakopmund', -22.683333, 14.533333, 4,
'23.04.-25.04.', 'red' ],
[ 'Maun', -19.983333, 23.416667, 5,
'26.04.-04.05.', 'yellow' ],
[ 'Okavango delta', -19.3045433, 22.6437025, 6,
'03.05.', 'yellow' ],
[ 'Moremi Game Reserve', -19.2395708, 23.3544449,
7, '03.05.', 'yellow' ],
[ 'Gweta', -20.2111684, 25.2541233, 8,
'04.05.-06.05.', 'yellow' ],
[ 'Kasane', -17.816667, 25.15, 9, '~ 07.05.',
'yellow' ],
[ 'Livingstone', -17.8519791, 25.8285153, 10,
'~ 09.05.', 'yellow' ],
[ 'Victoria Falls', -17.924444, 25.856667, 11,
'~ 13.05.', 'yellow' ],
[ 'Lusaka', -15.416667, 28.283333, 12, '~ 16.05.',
'yellow' ],
[ 'Kapiri Mposhi', -13.9778684, 28.6848112, 13,
'~ 19.05.', 'yellow' ],
[ 'Dar Es Salaam', -6.8, 39.283333, 14, '~ 21.05.',
'yellow' ],
[ 'Zanzibar', -6.165917, 39.202641, 15, '~ 23.05.',
'yellow' ],
[ 'Dubai', 25.204849, 55.270783, 16, '02.-09.06.',
'yellow' ],
[ 'Mumbai', 19.075984, 72.877656, 17,
'09.06.-12.06.', 'yellow' ],
[ 'Udaipur', 24.580000, 73.680000, 18,
'13.-16.06.', 'yellow' ],
[ 'Jodhpur', 26.238947, 73.024309, 19,
'16.-18.06.', 'yellow' ],
[ 'Jaipur', 26.912434, 75.787271, 20, '19.-22.06.',
'yellow' ],
[ 'New Delhi', 28.613939, 77.209021, 21,
'22.-24.06.', 'yellow' ],
[ 'Agra', 27.176670, 78.008075, 22, '22.-24.06.',
'yellow' ],
[ 'Kanpur', 26.449923, 80.331874, 23, '22.-24.06.',
'yellow' ],
[ 'Varanasi', 25.317645, 82.973914, 24,
'22.-24.06.', 'yellow' ],
[ 'Kolkata', 22.572646, 88.363895, 25,
'22.-24.06.', 'yellow' ],
[ 'Dublin', 53.349805, -6.260310, 26, '22.-24.06.',
'yellow' ],
[ 'Killarney', 52.059935, -9.504427, 27,
'22.-24.06.', 'yellow' ] ];
var contstops = [ '<h3>17.-21.04.</h3>', '<h3>22.04.</h3>',
'<h3>22.-23.04. & 25.-26.04.</h3>',
'<h3>23.-25.04.</h3>', '<h3>26.-04.05.</h3>',
'<h3>01.05.</h3>', '<h3>03.05.</h3>',
'<h3>04.-06.05.</h3>', '<h3>06.-09.07.</h3>',
'~ 09.05.', '~ 13.05.', '~ 16.05.', '~ 19.05.',
'~ 21.05.', '~ 23.05.', '02.-09.06.',
'09.06.-12.06.', '13.-16.06.', '16.-18.06.',
'19.-22.06.', '22.-24.06.', '', '', '', '', '', '' ]
function setMarkers(map, locations) {
// Add markers to the map
// Marker sizes are expressed as a Size of X,Y
// where the origin of the image (0,0) is located
// in the top left of the image.
// Origins, anchor positions and coordinates of the marker
// increase in the X direction to the right and in
// the Y direction down.
var imagesarray = [
'<h4>17.04.: Arriving in Cape Town</h4> <img src="pics/17.04-ArrivalCapeTown/17-04-6.JPG" width="608" height="465"> <img src="pics/17.04-ArrivalCapeTown/17-04-7.JPG" width="608" height="465"> <img src="pics/17.04-ArrivalCapeTown/17-04-9.JPG" width="608" height="465"> <h4>18.04.: Exploring Cape Town and the Peninsula</h4> <p>Visiting the <b>Neighbourgoods Market</b> at the <b>Old Biscuit Mill</b> (<a href="https://www.theoldbiscuitmill.co.za/">visit link</a>) </p> <img src="pics/18.04-CityAndPeninsula/18-04-1-1.JPG" width="608" height="465"> <img src="pics/18.04-CityAndPeninsula/18-04-1-2.JPG" width="608" height="465"> <img src="pics/18.04-CityAndPeninsula/18-04-1-5.JPG" width="608" height="465"> <img src="pics/18.04-CityAndPeninsula/18-04-1-7.JPG" width="608" height="465"> Special drink: Strawberry Pulp, Ginger Beer & Double Vodka <br></br> <img src="pics/18.04-CityAndPeninsula/18-04-1-8.JPG" width="608" height="465"> Scenic view on the Table Mountain <br></br> <p style="font-size:18">The <b>Bo-Kaap</b>: The former Malay quarter of Cape Town. </p> <img src="pics/18.04-CityAndPeninsula/18-04-2-6.JPG" width="465" height="608"> <img src="pics/18.04-CityAndPeninsula/18-04-3-6.JPG" width="608" height="465"> <p style="font-size:18">The peninsula of Cape Town </p> <img src="pics/18.04-CityAndPeninsula/18-04-3-13.JPG" width="608" height="465"> <img src="pics/18.04-CityAndPeninsula/18-04-4-1.JPG" width="608" height="465"> <img src="pics/18.04-CityAndPeninsula/18-04-4-4.JPG" width="608" height="465"> <b>Lion\'s Head</b> from the back<br></br> <img src="pics/18.04-CityAndPeninsula/18-04-4-9.JPG" width="608" height="465"> <img src="pics/18.04-CityAndPeninsula/18-04-4-12.JPG" width="608" height="465"> Hout Bay from Chapman\'s Peak<br></br> <img src="pics/18.04-CityAndPeninsula/18-04-4-13.JPG" width="608" height="465"> Dinner at Olympia Café in Kalk Bay<br></br> <h4>20.04.: Last day in Cape Town</h4> <img src="pics/20.04-LastDayInCapeTown/20-04-1-0.JPG" width="608" height="465"> Backyard area of our hostel<br></br> <img src="pics/20.04-LastDayInCapeTown/20-04-1-3.JPG" width="608" height="465"> Buying snacks (Namibian Beef & Ostrich Biltong, Samoosas) & drinks (Ginger beer) for the hike and the bus trip<br></br> <p style="font-size:18"> Hiking on top of the Table Mountain </p> <img src="pics/20.04-LastDayInCapeTown/20-04-1-10.JPG" width="608" height="465"> <img src="pics/20.04-LastDayInCapeTown/20-04-2-1.JPG" width="608" height="465"> <img src="pics/20.04-LastDayInCapeTown/20-04-2-6.JPG" width="608" height="465"> <img src="pics/20.04-LastDayInCapeTown/20-04-3-0.JPG" width="608" height="465"> <img src="pics/20.04-LastDayInCapeTown/20-04-3-3.JPG" width="608" height="465"> <img src="pics/20.04-LastDayInCapeTown/20-04-3-8.JPG" width="608" height="465"> <img src="pics/20.04-LastDayInCapeTown/20-04-4-6.JPG" width="608" height="465"> <img src="pics/20.04-LastDayInCapeTown/20-04-5-5.JPG" width="608" height="465"> <p> Lunch time at Moyo\'s & face painting </p> <img src="pics/20.04-LastDayInCapeTown/20-04-5-9.JPG" width="608" height="465"> <img src="pics/20.04-LastDayInCapeTown/20-04-5-11.JPG" width="608" height="465"> <img src="pics/20.04-LastDayInCapeTown/20-04-5-12.JPG" width="608" height="465"> <h4>21.04.: Going to Namibia</h4> <img src="pics/21-22.04-BusToWindhoek/21-04-1-0.JPG" width="608" height="465"> Beginning of the 22-hours bus trip <br></br> <img src="pics/21-22.04-BusToWindhoek/21-04-1-6.JPG" width="608" height="465"> South-african desert',
'',
'<h4>22.04.: First impressions of Windhoek</h4> <img src="pics/21-22.04-BusToWindhoek/21-04-2-9.JPG" width="608" height="465"> <img src="pics/21-22.04-BusToWindhoek/21-04-2-12.JPG" width="608" height="465"> <img src="pics/21-22.04-BusToWindhoek/21-04-2-14.JPG" width="608" height="465"> <img src="pics/22.04-ExploringWindhoek/22-04-1-5.JPG" width="608" height="465"> <img src="pics/22.04-ExploringWindhoek/22-04-1-7.JPG" width="608" height="465"> <img src="pics/22.04-ExploringWindhoek/22-04-1-8.JPG" width="608" height="465"> <img src="pics/22.04-ExploringWindhoek/22-04-1-9.JPG" width="608" height="465"> <img src="pics/22.04-ExploringWindhoek/22-04-2-3.JPG" width="608" height="465"> <img src="pics/22.04-ExploringWindhoek/22-04-2-6.JPG" width="608" height="465"> <img src="pics/22.04-ExploringWindhoek/22-04-2-8.JPG" width="608" height="465">',
'<h4>23.04.: Swakopmund</h4> <p style="font-size:18">Swakopmund township</p> <img src="pics/23.04-Swakopmund/23-04-1-6.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-1-7.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-1-8.JPG" width="608" height="465"> <p style="font-size:18">Swakopmund Strand</p> <img src="pics/23.04-Swakopmund/23-04-1-10.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-2-3.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-2-4.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-2-5.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-2-7.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-2-8.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-2-11.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-3-1.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-1-8.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-3-2.JPG" width="608" height="465"><br> Map of Swakopmund in the Transnamibian museum <br></br> <img src="pics/23.04-Swakopmund/23-04-3-4.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-3-6.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-4-0.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-4-6.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-4-9.JPG" width="608" height="465"> <img src="pics/23.04-Swakopmund/23-04-4-13.JPG" width="608" height="465">',
'',
'<h4>01.05.: Mokoro trip in the Okavango delta</h4> <img src="pics/Mokoro/01-05-1-0.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-1-1.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-1-2.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-1-5.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-1-6.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-1-9.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-1-11.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-2-9.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-3-1.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-3-5.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-3-13.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-4-13.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-4-15.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-5-1.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-5-2.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-5-3.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-5-4.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-5-5.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-5-12.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-5-13.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-6-2.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-6-9.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-6-11.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-6-15.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-7-1.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-7-4.JPG" width="608" height="465"> <img src="pics/Mokoro/01-05-7-5.JPG" width="608" height="465">',
'<h4>03.05.: Oneday 4x4 safari in the Moremi national park</h4> <img src="pics/Moremi/03-05-1-0.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-2.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-4.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-5.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-6.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-7.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-8.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-9.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-11.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-12.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-13.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-1-14.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-0.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-1.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-2.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-3.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-4.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-6.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-7.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-8.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-9.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-11.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-12.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-13.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-14.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-2-15.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-0.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-2.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-6.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-7.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-8.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-9.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-10.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-11.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-12.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-14.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-3-15.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-4-4.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-4-5.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-4-7.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-4-8.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-4-10.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-4-14.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-5-7.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-5-8.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-5-9.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-5-13.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-6-0.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-6-7.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-6-8.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-6-10.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-6-11.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-6-13.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-6-14.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-6-15.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-0.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-1.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-2.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-3.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-4.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-5.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-6.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-7.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-8.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-10.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-11.JPG" width="608" height="465"> <img src="pics/Moremi/03-05-7-14.JPG" width="608" height="465">',
'',
'<h4>07. & 08.05.: River cruise and overnight 4x4 safari in the Chobe national park</h4> ',
'', '' ]
// Shapes define the clickable region of the icon.
// The type defines an HTML <area> element 'poly' which
// traces out a polygon as a series of X,Y points. The final
// coordinate closes the poly by connecting to the first
// coordinate.
var image = new google.maps.MarkerImage(
'images/dot.png', new google.maps.Size(10, 10),
new google.maps.Point(0, 0),
new google.maps.Point(5, 5));
for (var i = 0; i < locations.length; i++) {
var stop = locations[i];
var shape = {
coords : [ 1, 1, 1, 20, 18, 20, 18, 1 ],
type : 'poly',
fillColor : stop[5]
};
var myLatLng = new google.maps.LatLng(stop[1],
stop[2])
var marker = new google.maps.Marker({
position : myLatLng,
map : map,
icon : image,
//shape: shape,
title : stop[0],
zIndex : stop[3]
});
google.maps.event
.addListener(
marker,
'click',
function() {
// where I have added .html to the marker object.
infowindow
.setContent(contstops[this
.getZIndex() - 1]
+ imagesarray[this
.getZIndex() - 1]);
infowindow.open(map, this);
});
}
}
function codeAddress() {
var address = document.getElementById('address').value;
geocoder
.geocode(
{
'address' : address
},
function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map
.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker(
{
map : map,
position : results[0].geometry.location,
title : results[0].geometry.location
.toString()
});
} else {
alert('Geocode was not successful for the following reason: '
+ status);
}
});
}
google.maps.event
.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<!-- <div id="panel">
<input id="address" type="textbox" value="Sydney, NSW">
<input type="button" value="Geocode" onclick="codeAddress()">
</div> -->
<div id="map-canvas"></div>
</body>
</html>