-
Notifications
You must be signed in to change notification settings - Fork 1
/
maps.html
executable file
·551 lines (508 loc) · 26.1 KB
/
maps.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Maps // Soft Admin</title>
<!-- Default Styles (DO NOT TOUCH) -->
<link rel="stylesheet" href="lib/css/font-awesome.min.css">
<link rel="stylesheet" href="lib/css/bootstrap.min.css">
<link rel="stylesheet" href="lib/css/fonts.css">
<link type="text/css" rel="stylesheet" href="lib/css/soft-admin.css"/>
<!-- Adjustable Styles -->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<script src="lib/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="cntnr">
<!-- RESPONSIVE LEFT SIDEBAR & LOGO -->
<div class="left hidden-xs">
<div class="logo"><img id="logo" src="lib/img/logo3.png" style="width:159px !important; height:52px; !important"></div>
<div class="sidebar">
<div>
<input class="typeahead" type="text" placeholder="Search">
<span id="search-icon" class="glyphicon glyphicon-search"></span>
</div>
<div class="accordion">
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="index.html">
<span class="fa fa-dashboard"></span>
Dashboard
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="typography.html">
<span class="icon icon-text-width"></span>
Typography
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="charts.html">
<span class="fa fa-bar-chart-o"></span>
Charts
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="widgets.html">
<span class="fa fa-list-alt"></span>
Widgets
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" data-toggle="collapse" href="#c-ui">
<span class="icon icon-credit-card"></span>
UI Elements
<span class="caret"></span>
</a>
</div>
<div id="c-ui" class="accordion-body collapse"><div class="accordion-inner">
<a href="alerts_notifications.html" class="sbtn sbtn-default">Alerts & Notifications <span class="label label-primary">9</span></a>
<a href="tabs_accordion.html" class="sbtn sbtn-default">Tabs & Accordions</a>
<a href="buttons.html" class="sbtn sbtn-default">Buttons & Icons</a>
</div></div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="gallery.html">
<span class="fa fa-picture-o"></span>
Gallery
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn sbtn-default" data-toggle="collapse" href="#c-forms">
<span class="fa fa-pencil-square-o"></span>
Forms
<span class="caret"></span>
</a>
</div>
<div id="c-forms" class="accordion-body collapse"><div class="accordion-inner">
<a href="form_basic.html" class="sbtn sbtn-default">Basic Form Elements</a>
<a href="form_advanced.html" class="sbtn sbtn-default">Advanced Form Elements</a>
<a href="form_wysiwyg.html" class="sbtn sbtn-default">WYSIWYG</a>
<a href="form_validation.html" class="sbtn sbtn-default">Form Validation</a>
</div></div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" data-toggle="collapse" href="#c-tables">
<span class="fa fa-table"></span>
Tables
<span class="caret"></span>
</a>
</div>
<div id="c-tables" class="accordion-body collapse"><div class="accordion-inner">
<a href="table_static.html" class="sbtn sbtn-default">Static Tables <span class="label label-soft">2</span></a>
<a href="table_datatables.html" class="sbtn sbtn-default">jQuery Datatables</a>
</div></div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="storyboard.html">
<span class="fa fa-tasks"></span>
Storyboard
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="calendar.html">
<span class="fa fa-calendar"></span>
Calendar
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default active" href="maps.html">
<span class="fa fa-map-marker"></span>
Maps
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" data-toggle="collapse" href="#c-pages">
<span class="fa fa-file-o"></span>
Pages
<span class="caret"></span>
</a>
</div>
<div id="c-pages" class="accordion-body collapse"><div class="accordion-inner">
<a href="login_register.html" class="sbtn sbtn-default">Login</a>
<a href="FAQ.html" class="sbtn sbtn-default">F.A.Q.</a>
<a href="grid.html" class="sbtn sbtn-default">Grid</a>
<a href="404.html" class="sbtn sbtn-default">404 Error</a>
<a href="invoice.html" class="sbtn sbtn-default">Invoice</a>
</div></div>
</div>
</div>
</div>
</div>
<!-- END LEFT SIDEBAR & LOGO -->
<!-- RESPONSIVE NAVIGATION -->
<div id="secondary" class="btn-group visible-xs">
<button type="button" class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown"><span class="icon icon-th-large"></span> Navigation <span class="caret"></span></button>
<ul class="dropdown-menu dropdown-info pull-right" role="menu">
<li><a href="index.html">Dashboard</a></li>
<li><a href="#">Labels</a></li>
<li><a href="#">Admin</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li><a href="typography.html">Typography</a></li>
<li><a href="charts.html">Charts</a></li>
<li><a href="widgets.html">Widgets</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li class="dropdown-header">UI Elements</li>
<li><a href="alerts_notifications.html">Alerts & Notifications</a></li>
<li><a href="tabs_accordion.html">Tabs & Accordions</a></li>
<li><a href="buttons.html">Buttons & Icons</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li><a href="gallery.html">Gallery</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li class="dropdown-header">Forms</li>
<li><a href="form_basic.html">Basic Form Elements</a></li>
<li><a href="form_advanced.html">Advanced Form Elements</a></li>
<li><a href="form_wysiwyg.html">WYSIWYG</a></li>
<li><a href="form_validation.html">Form Validation</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li class="dropdown-header">Tables</li>
<li><a href="form_basic.html">Static Tables</a></li>
<li><a href="form_advanced.html">jQuery Datatables</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li><a href="storyboard.html">Storyboard</a></li>
<li><a href="calendar.html">Calendar</a></li>
<li><a href="maps.html">Maps</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li class="dropdown-header">Pages</li>
<li><a href="login.html">Login</a></li>
<li><a href="FAQ.html">F.A.Q.</a></li>
<li><a href="grid.html">Grid</a></li>
<li><a href="grid.html">404 Error Template</a></li>
<li><a href="invoice.html">Invoice</a></li>
</ul>
</div>
<div id="secondary-search" class="input-icon visible-xs">
<i class="icon icon-search"></i>
<input class="form-control form-warning input-sm" type="text">
</div>
<!-- END RESPONSIVE NAVIGATION -->
<!-- RIGHT NAV, CRUMBS, & CONTENT -->
<div class="right">
<div class="nav">
<div class="bar">
<!-- RESPONSIVE SMALL LOGO (HIDDEN BY DEFAULT) -->
<div class="logo-small visible-xs"><img src="lib/img/logo.png"></div>
<!-- NAV PILLS -->
<ul class="nav nav-pills hidden-xs">
<li class="active"><a href="index.html"><span class="fa fa-dashboard"></span>Dashboard</a></li>
<li><a href="#"><span class="icon icon-barcode"></span>Labels <span class="label label-primary">1,078</span></a></li>
<li><a href="#"><span class="icon icon-cog"></span>Admin</a></li>
</ul>
<!-- ICON DROPDOWNS -->
<div class="hov">
<div class="btn-group">
<a class="con" href="" data-toggle="dropdown"><span class="icon icon-bell"></span><span class="label label-danger">55</span></a>
<ul class="dropdown-menu pull-right dropdown-alerts" role="menu">
<li class="title"><span class="icon icon-bell"></span> There are 5 new alerts in the system...</li>
<li class="alert">
<div class="alert-icon alt-default"><span class="fa fa-check-square"></span></div>
<div class="alert-content">Quality check was successful</div>
<div class="alert-time">32 sec ago</div>
</li>
<li class="alert">
<div class="alert-icon alt-primary"><span class="fa fa-plus-square"></span></div>
<div class="alert-content">New user added (Bob Grassle)</div>
<div class="alert-time">11 min ago</div>
</li>
<li class="alert">
<div class="alert-icon alt-warning"><span class="fa fa-pencil-square"></span></div>
<div class="alert-content">User profile updated (Steve Jones)</div>
<div class="alert-time">3 hours ago</div>
</li>
<li class="alert">
<div class="alert-icon alt-danger"><span class="fa fa-warning"></span></div>
<div class="alert-content">System failure reported</div>
<div class="alert-time">2 days ago</div>
</li>
<li class="divider"></li>
<li><a href="#">View all recent alerts</a></li>
</ul>
</div>
<div class="btn-group">
<a class="con" href="" data-toggle="dropdown"><span class="icon icon-envelope"></span><span class="label label-success">5</span></a>
<ul class="dropdown-menu pull-right dropdown-messages" role="menu">
<li class="title"><span class="icon icon-envelope"></span> You have 13 new messages to read...</li>
<li class="message">
<div class="message-icon"><img src="lib/img/users/1.png"></div>
<div class="message-content"><a href="#">Steve</a> Lorem ipsum dolor sit amet...</div>
<div class="message-time">32 sec ago</div>
</li>
<li class="message">
<div class="message-icon"><img src="lib/img/users/2.png"></div>
<div class="message-content"><a href="#">John</a> Quisque commodo sed ipsum...</div>
<div class="message-time">11 min ago</div>
</li>
<li class="message">
<div class="message-icon"><img src="lib/img/users/3.png"></div>
<div class="message-content"><a href="#">Susan</a> Consectetur adipiscing elit...</div>
<div class="message-time">3 hours ago</div>
</li>
<li class="message">
<div class="message-icon"><img src="lib/img/users/4.png"></div>
<div class="message-content"><a href="#">Barbara</a> Quisque commodo sed ipsum...</div>
<div class="message-time">2 days ago</div>
</li>
<li class="divider"></li>
<li><a href="#">View all new messages...</a></li>
</ul>
</div>
<div class="btn-group">
<a class="con" href="" data-toggle="dropdown"><span class="icon icon-user"></span><span class="label label-primary">+5</span></a>
<ul class="dropdown-menu pull-right dropdown-profile" role="menu">
<li class="title"><span class="icon icon-user"></span> Welcome, Joseph!</li>
<li><a href="#"><span class="fa fa-gears"></span>Settings</a></li>
<li><a href="#"><span class="fa fa-user"></span>Profile</a></li>
<li><a href="#"><span class="icon icon-envelope"></span>Messages</a></li>
<li class="divider"></li>
<li><a href="#"><span class="fa fa-power-off"></span>Logout</a></li>
</ul>
</div>
</div>
</div>
<!-- BREADCRUMBS -->
<div class="crumbs">
<ol class="breadcrumb hidden-xs">
<li><i class="fa fa-home"></i> <a href="#">Home</a></li>
<li class="active">Maps</li>
</ol>
</div>
</div>
<!-- BEGIN PAGE CONTENT -->
<div class="content">
<div class="page-h1">
<h1>Maps <small>// Custom markers, info-windows, and styles using Google Maps</small></h1>
</div>
<div class="tbl">
<div class="col-md-12">
<div class="wdgt">
<div class="wdgt-header">Google Maps (Info Window)
<span style="float:right; position:relative; top:-2px; right:-2px;">
<div class="btn-group">
<button type="button" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown">Set Style</button>
<ul class="dropdown-menu pull-right dropdown-success" role="menu">
<li><a href="javascript:void(0);" onclick="setStyle(1, 1);">Style 1</a></li>
<li><a href="javascript:void(0);" onclick="setStyle(2, 1);">Style 2</a></li>
<li><a href="javascript:void(0);" onclick="setStyle(3, 1);">Style 3</a></li>
<li><a href="javascript:void(0);" onclick="setStyle(4, 1);">Style 4</a></li>
<li><a href="javascript:void(0);" onclick="setStyle(5, 1);">Style 5</a></li>
</ul>
</div><!-- /btn-group -->
</span>
</div>
<div class="wdgt-body wdgt-map" style="padding-bottom:10px;height:600px;">
<div id="map-canvas"></div>
</div>
<style type="text/css">
#map-canvas { height: 100% }
</style>
</div>
</div>
<div class="col-md-12">
<div class="wdgt">
<div class="wdgt-header">Google Maps (Chart Window & Styled)
<span style="float:right; position:relative; top:-2px; right:-2px;">
<div class="btn-group">
<button type="button" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown">Set Style</button>
<ul class="dropdown-menu pull-right dropdown-success" role="menu">
<li><a href="javascript:void(0);" onclick="setStyle(1, 2);">Style 1</a></li>
<li><a href="javascript:void(0);" onclick="setStyle(2, 2);">Style 2</a></li>
<li><a href="javascript:void(0);" onclick="setStyle(3, 2);">Style 3</a></li>
<li><a href="javascript:void(0);" onclick="setStyle(4, 2);">Style 4</a></li>
<li><a href="javascript:void(0);" onclick="setStyle(5, 2);">Style 5</a></li>
</ul>
</div><!-- /btn-group -->
</span>
</div>
<div class="wdgt-body wdgt-map" style="padding-bottom:10px;height:600px;">
<div id="map-canvastwo"></div>
</div>
<style type="text/css">
#map-canvastwo { height: 100% }
.wdgt button > .caret { margin-left:6px; margin-top:7px; }
</style>
</div>
</div>
<div class="col-md-12">
<div class="wdgt">
<div class="wdgt-header">Google Maps (Geomap)</div>
<div class="wdgt-body wdgt-map" style="padding-bottom:10px;height:600px;">
<div id="map-canvasthree"></div>
</div>
<style type="text/css">
#map-canvasthree { width:100% !important; height:599px; }
#map-canvasthree object, #map-canvasthree embed { width:100% !important; height:599px; }
</style>
</div>
</div>
</div>
</div>
<!-- END PAGE CONTENT -->
</div>
<!-- END NAV, CRUMBS, & CONTENT -->
</div>
<!-- Default JS (DO NOT TOUCH) -->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="lib/js/bootstrap.min.js"></script>
<script src="lib/js/hogan.min.js"></script>
<script src="lib/js/typeahead.min.js"></script>
<script src="lib/js/typeahead-example.js"></script>
<!-- Adjustable JS -->
<script src="lib/js/soft-widgets.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCJEVoE5Ix-7HPh0OJWDLV0LgnaFAVslmE&sensor=true"></script>
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type="text/javascript">
var marker = new Array();
var lstnr = new Array();
var map, maptwo;
// STYLES
var style1 = [{"stylers":[{"visibility":"off"}]},{"featureType":"road","stylers":[{"visibility":"on"},{"color":"#ffffff"}]},{"featureType":"road.arterial","stylers":[{"visibility":"on"},{"color":"#fee379"}]},{"featureType":"road.highway","stylers":[{"visibility":"on"},{"color":"#fee379"}]},{"featureType":"landscape","stylers":[{"visibility":"on"},{"color":"#f3f4f4"}]},{"featureType":"water","stylers":[{"visibility":"on"},{"color":"#7fc8ed"}]},{},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#83cead"}]},{"elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"weight":0.9},{"visibility":"off"}]}];
var style2 = [{"featureType":"water","stylers":[{"visibility":"on"},{"color":"#acbcc9"}]},{"featureType":"landscape","stylers":[{"color":"#f2e5d4"}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"color":"#c5c6c6"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#e4d7c6"}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#fbfaf7"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#c5dac6"}]},{"featureType":"administrative","stylers":[{"visibility":"on"},{"lightness":33}]},{"featureType":"road"},{"featureType":"poi.park","elementType":"labels","stylers":[{"visibility":"on"},{"lightness":20}]},{},{"featureType":"road","stylers":[{"lightness":20}]}];
var style3 = [{"stylers":[{"saturation":-100},{"gamma":0.8},{"lightness":4},{"visibility":"on"}]},{"featureType":"landscape.natural","stylers":[{"visibility":"on"},{"color":"#5dff00"},{"gamma":4.97},{"lightness":-5},{"saturation":100}]}];
var style4 = [{"featureType":"water","elementType":"geometry","stylers":[{"color":"#a2daf2"}]},{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"color":"#f7f1df"}]},{"featureType":"landscape.natural","elementType":"geometry","stylers":[{"color":"#d0e3b4"}]},{"featureType":"landscape.natural.terrain","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#bde6ab"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"poi.medical","elementType":"geometry","stylers":[{"color":"#fbd3da"}]},{"featureType":"poi.business","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffe15f"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#efd151"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.local","elementType":"geometry.fill","stylers":[{"color":"black"}]},{"featureType":"transit.station.airport","elementType":"geometry.fill","stylers":[{"color":"#cfb2db"}]}];
var style5 = [{"featureType":"water","stylers":[{"color":"#46bcec"},{"visibility":"on"}]},{"featureType":"landscape","stylers":[{"color":"#f2f2f2"}]},{"featureType":"road","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road.highway","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#444444"}]},{"featureType":"transit","stylers":[{"visibility":"off"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]}];
function setStyle(which, mapz){
if(mapz == 1){
if(which == 1){ map.setOptions({styles: style1}); }
if(which == 2){ map.setOptions({styles: style2}); }
if(which == 3){ map.setOptions({styles: style3}); }
if(which == 4){ map.setOptions({styles: style4}); }
if(which == 5){ map.setOptions({styles: style5}); }
}else if(mapz == 2){
if(which == 1){ maptwo.setOptions({styles: style1}); }
if(which == 2){ maptwo.setOptions({styles: style2}); }
if(which == 3){ maptwo.setOptions({styles: style3}); }
if(which == 4){ maptwo.setOptions({styles: style4}); }
if(which == 5){ maptwo.setOptions({styles: style5}); }
}
}
function getInfoWindow(mrk){
var contentString = '<div style="width:200px;color:#448fba;border-bottom:1px solid #DDD; font-size:14px; ">Window Header</div><div style="width:200px;margin-top:10px;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</div><div style="text-align:right;margin-top:10px;"><button type="button" class="btn btn-dark btn-sm">Dark</button> <button type="button" class="btn btn-primary btn-sm">Primary</button></div>';
var infowindow = new google.maps.InfoWindow({ content: contentString, maxWidth: 200 });
infowindow.open(map,mrk);
}
function getChartWindow(mrk){
var contentString = '<div style="width:200px;color:#448fba;border-bottom:1px solid #DDD; font-size:14px; ">Chart Window</div><div style="width:200px;margin-top:10px;"><iframe style="width:200px;height:180px;border:0;margin:0;padding:0;overflow:hidden;" src="maps_iframe.html"></iframe></div>';
var infowindow = new google.maps.InfoWindow({ content: contentString, maxWidth: 200 });
infowindow.open(maptwo,mrk);
}
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(35.2269, -80.8433),
zoom: 12
};
map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
for(var i=0; i < 20; i++){
var ran1 = Math.random()/7; if(Math.random() > 0.5) { ran1 = ran1*(0-1); }
var ran2 = Math.random()/7; if(Math.random() > 0.5) { ran2 = ran2*(0-1); }
var myLatlng = new google.maps.LatLng(35.2269 + ran1, -80.8433 + ran2);
var image = 'lib/img/map-icons/text.png';
var marker = new google.maps.Marker({ position: myLatlng, map: map, icon: image});
google.maps.event.addListener(marker, 'click', function() { getInfoWindow(this); });
}
}
google.maps.event.addDomListener(window, 'load', initialize);
function initializetwo() {
var mapOptionstwo = {
center: new google.maps.LatLng(35.2269, -80.8433),
zoom: 12
};
maptwo = new google.maps.Map(document.getElementById("map-canvastwo"), mapOptionstwo);
for(var i=0; i < 20; i++){
var ran1 = Math.random()/7; if(Math.random() > 0.5) { ran1 = ran1*(0-1); }
var ran2 = Math.random()/7; if(Math.random() > 0.5) { ran2 = ran2*(0-1); }
var myLatlng = new google.maps.LatLng(35.2269 + ran1, -80.8433 + ran2);
var image = 'lib/img/map-icons/chart-2.png';
var marker = new google.maps.Marker({ position: myLatlng, map: maptwo, icon: image});
google.maps.event.addListener(marker, 'click', function() { getChartWindow(this); });
}
}
google.maps.event.addDomListener(window, 'load', initializetwo);
google.load('visualization', '1', {'packages': ['geomap']});
google.setOnLoadCallback(drawMapThree);
function drawMapThree() {
var data = google.visualization.arrayToDataTable([
['State', 'Population'],
['US-AL', 4779736],
['US-AK', 710231],
['US-AZ', 6392017],
['US-AR', 2915918],
['US-CA', 37253956],
['US-CO', 5029196],
['US-CT', 3574097],
['US-DE', 897934],
['US-FL', 18801310],
['US-GA', 9687653],
['US-HI', 1360301],
['US-ID', 1567582],
['US-IL', 12830632],
['US-IN', 6483802],
['US-IA', 3046355],
['US-KS', 2853118],
['US-KY', 4339367],
['US-LA', 4533372],
['US-ME', 1328361],
['US-MD', 5773552],
['US-MA', 6547629],
['US-MI', 9883640],
['US-MN', 5303925],
['US-MS', 2967297],
['US-MO', 5988927],
['US-MT', 989415],
['US-NE', 1826341],
['US-NV', 2700551],
['US-NH', 1316470],
['US-NJ', 8791894],
['US-NM', 2059179],
['US-NY', 19378102],
['US-NC', 9535483],
['US-ND', 672591],
['US-OH', 11536504],
['US-OK', 3751351],
['US-OR', 3831074],
['US-PA', 12702379],
['US-RI', 1052567],
['US-SC', 4625364],
['US-SD', 814180],
['US-TN', 6346105],
['US-TX', 25145561],
['US-UT', 2763885],
['US-VT', 625741],
['US-VA', 8001024],
['US-WA', 6724540],
['US-WV', 1852994],
['US-WI', 5686986],
['US-WY', 563626]
]);
var options = {};
options['region'] = 'US';
options['dataMode'] = 'regions';
options['colors'] = [0xB4D1EA, 0x7BAEDA, 0x357ebd];
var container = document.getElementById('map-canvasthree');
var geomap = new google.visualization.GeoMap(container);
geomap.draw(data, options);
};
</script>
</body>
</html>