-
Notifications
You must be signed in to change notification settings - Fork 0
/
BusStopMap_LocationHighlight.html
11748 lines (11726 loc) · 843 KB
/
BusStopMap_LocationHighlight.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
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>대구시 버스 정류장 위치</title>
<script
type="text/javascript"
src="https://openapi.map.naver.com/openapi/v3/maps.js?ncpClientId=아이디적는곳"
></script>
<style>
#map {
width: 100%;
height: 800px;
}
#menu {
position: absolute;
top: 10px;
left: 10px;
z-index: 999;
border: 1px solid black;
padding: 5px;
}
.gray-button {
background-color: rgb(252, 87, 87);
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
font-size: 14px;
}
.gray-button:hover {
background-color: darkgray;
}
</style>
</head>
<body>
<h1 id="title">대구시 버스 정류장 위치</h1>
<div id="menu" style="margin-top: 90px; margin-left: 20px">
<button
onclick="highlightDistrict('대구시전체'); SpecialloadMarkers('대구시전체')"
>
대구시전체
</button>
<button onclick="highlightDistrict('중구')">중구</button>
<button onclick="highlightDistrict('동구')">동구</button>
<button onclick="highlightDistrict('서구')">서구</button>
<button onclick="highlightDistrict('남구')">남구</button>
<button onclick="highlightDistrict('북구')">북구</button>
<button onclick="highlightDistrict('수성구')">수성구</button>
<button onclick="highlightDistrict('달서구')">달서구</button>
<button onclick="highlightDistrict('달성군')">달성군</button>
<button
onclick="highlightDistrict('대구시전체'); SpecialloadMarkers('스마트쉘터')"
>
스마트 쉘터
</button>
<button class="gray-button" onclick="toggleTextVisibility()">
텍스트 켜기/끄기
</button>
</div>
<div id="map"></div>
<script>
var mapOptions = {
center: new naver.maps.LatLng(35.8719988, 128.6018783),
zoom: 11,
};
var map = new naver.maps.Map("map", mapOptions);
var specialMarkers = [];
var textVisible = true;
var districtPolygons = {}; // 각 구역의 폴리곤을 저장할 객체
var currentPolygon = null; // 현재 선택된 폴리곤
map.addListener("zoom_changed", function () {
adjustMarkerSize();
});
function SpecialloadMarkers(district) {
clearMarkers();
var locations = getSpecialLocationsByDistrict(district);
locations.forEach(function (location, index) {
var marker = new naver.maps.Marker({
position: new naver.maps.LatLng(location.lat, location.lng),
map: map,
title: location.title,
icon: {
content: createMarkerContent(
location.title,
index + 1,
map.getZoom()
),
},
});
specialMarkers.push(marker);
});
document.getElementById("title").innerHTML =
"대구시 버스 정류장 위치: " + district;
}
function createMarkerContent(title, index, zoom) {
var fontSize = zoom > 12 ? "12px" : zoom > 11 ? "14px" : "12px";
var circleSize = zoom > 12 ? "20px" : zoom > 11 ? "24px" : "15px";
var displayTitle = textVisible && zoom > 12 ? title : ""; // 텍스트 표시 여부 및 줌 레벨에 따른 텍스트 숨기기
var boxDisplay = textVisible && zoom > 12 ? "inline-block" : "none"; // 텍스트 표시 여부 및 줌 레벨에 따른 텍스트 상자 표시 여부
return `
<div style="display: flex; align-items: center;">
<div style="width: ${circleSize}; height: ${circleSize}; line-height: ${circleSize}; border-radius: 50%; background-color: yellow; text-align: center; font-weight: bold; margin-right: 8px; font-size: ${fontSize}; border: 2px solid black;">
${index}
</div>
<div style="display: ${boxDisplay}; background-color: rgb(255, 73, 73); margin-left: -10px; border: 1px solid black; padding: 1px 5px; font-size: ${fontSize}; color: black;">
${displayTitle}
</div>
</div>`;
}
function adjustMarkerSize() {
var zoomLevel = map.getZoom();
specialMarkers.forEach(function (marker, index) {
var title = marker.getTitle();
marker.setIcon({
content: createMarkerContent(title, index + 1, zoomLevel),
});
});
}
function toggleTextVisibility() {
textVisible = !textVisible;
adjustMarkerSize();
}
function clearMarkers() {
specialMarkers.forEach((marker) => marker.setMap(null));
specialMarkers = [];
}
function highlightDistrict(district) {
// 구별로 색상을 지정하는 배열
var districtColors = {
중구: "#FF982E", // 빨간색
동구: "#00FF00", // 초록색
서구: "#0000FF", // 파란색
남구: "#C71585", // DarkOrange
북구: "#FF00FF", // 자홍색
수성구: "#00FFFF", // 청록색
달서구: "247C4D", // 주황색
달성군: "#800000", // DarkSlateGray#800000
};
// 모든 폴리곤 제거
clearAllPolygons();
// '대구시전체'를 선택했을 때 모든 구역을 다 표시
if (district === "대구시전체") {
// 모든 구역에 대해 폴리곤 생성
for (var key in districtColors) {
var path = getDistrictPath(key);
if (path) {
var fillColor = districtColors[key] || "#FF0000"; // 기본 색상은 빨간색
var lightenedColor = lightenColor(fillColor, 50); // 색상을 30% 더 밝게
var polygon = new naver.maps.Polygon({
map: map,
paths: path,
fillColor: lightenedColor,
fillOpacity: 0.3, // fillOpacity를 0.3으로 설정하여 색상을 더 연하게
strokeColor: lightenedColor,
strokeWeight: 2,
});
districtPolygons[key] = polygon; // 각 구역의 폴리곤을 저장
}
}
} else {
// 특정 구역에 대한 폴리곤 하이라이트 추가
var path = getDistrictPath(district);
if (path) {
var fillColor = districtColors[district] || "#FF0000"; // 기본 색상은 빨간색
var lightenedColor = lightenColor(fillColor, 50); // 색상을 30% 더 밝게
currentPolygon = new naver.maps.Polygon({
map: map,
paths: path,
fillColor: lightenedColor,
fillOpacity: 0.3, // fillOpacity를 0.3으로 설정하여 색상을 더 연하게
strokeColor: lightenedColor,
strokeWeight: 2,
});
}
}
// 해당 구역의 마커 로드
SpecialloadMarkers(district);
}
function clearAllPolygons() {
// 이전에 생성된 모든 폴리곤 제거
for (var key in districtPolygons) {
if (districtPolygons[key]) {
districtPolygons[key].setMap(null);
}
}
districtPolygons = {}; // 초기화
if (currentPolygon) {
currentPolygon.setMap(null);
currentPolygon = null; // 초기화
}
}
function lightenColor(color, percent) {
// 색상을 밝게 만드는 함수
var num = parseInt(color.slice(1), 16),
amt = Math.round(2.55 * percent),
R = (num >> 16) + amt,
G = ((num >> 8) & 0x00ff) + amt,
B = (num & 0x0000ff) + amt;
return (
"#" +
(
0x1000000 +
(R < 255 ? (R < 1 ? 0 : R) : 255) * 0x10000 +
(G < 255 ? (G < 1 ? 0 : G) : 255) * 0x100 +
(B < 255 ? (B < 1 ? 0 : B) : 255)
)
.toString(16)
.slice(1)
.toUpperCase()
);
}
function getSpecialLocationsByDistrict(district) {
switch (district) {
case "중구":
return [
{
title: "약령시건너(동성로입구)",
lat: 35.86784188,
lng: 128.5936867,
},
{ lat: 35.87028367, lng: 128.5897118, title: "곽병원건너" },
{ title: "대구역앞", lat: 35.8745935, lng: 128.5976212 },
{ title: "중구청앞", lat: 35.86898298, lng: 128.6069025 },
{
title: "계명대학교 대구동산병원앞1",
lat: 35.8685509,
lng: 128.5823385,
},
{
title: "방천시장(김광석길)앞",
lat: 35.86224523,
lng: 128.6063391,
},
{ title: "봉산문화거리앞", lat: 35.86463592, lng: 128.5971731 },
{ title: "경북공고앞", lat: 35.85790098, lng: 128.5828075 },
{ title: "수창초등학교", lat: 35.875345, lng: 128.58224 },
{
title: "상수도사업본부건너",
lat: 35.85648675,
lng: 128.5961886,
},
{
lat: 35.86594632,
lng: 128.5852631,
title: "엘디스리젠트호텔앞",
},
{ title: "대구향교건너", lat: 35.86023935, lng: 128.5958776 },
{ title: "중부소방서건너", lat: 35.86312555, lng: 128.5755587 },
{ lat: 35.85718537, lng: 128.6046642, title: "청운맨션앞" },
];
case "동구":
return [
{ title: "동대구역", lat: 35.87939167, lng: 128.6269944 },
{ title: "대구국제공항앞", lat: 35.89926493, lng: 128.6364056 },
{ lat: 35.87414717, lng: 128.6138597, title: "신천LH아파트앞" },
{
title: "반야월역(3번출구)",
lat: 35.86584078,
lng: 128.7146342,
},
{
title: "대구일마이스터고교앞",
lat: 35.88089507,
lng: 128.6475359,
},
{ title: "파계사(종점)", lat: 35.99035823, lng: 128.6369601 },
{ lat: 35.87762082, lng: 128.6765476, title: "백자맨션앞" },
{ lat: 35.91459735, lng: 128.6412378, title: "불로동고분군앞" },
{ lat: 35.87373667, lng: 128.749895, title: "LH10단지아파트앞" },
{ title: "율하근린공원건너", lat: 35.86820333, lng: 128.6917533 },
{
title: "안심도서관1(서편)",
lat: 35.85990667,
lng: 128.6997217,
},
{
title: "방짜유기박물관건너",
lat: 35.96447708,
lng: 128.6978905,
},
{ title: "섬뜸마을", lat: 35.9324956, lng: 128.6883578 },
{
title: "진인동(진정마을)2",
lat: 35.95819588,
lng: 128.7146076,
},
];
case "서구":
return [
{
title: "큰장네거리1",
lat: 35.8711705,
lng: 128.5782699,
},
{
title: "대구과학기술고등학교앞",
lat: 35.85578237,
lng: 128.5477465,
},
{
title: "서대구역(남측)1",
lat: 35.88068167,
lng: 128.540185,
},
{
title: "비산초등학교앞",
lat: 35.879265,
lng: 128.5651663,
},
{ lat: 35.86316702, lng: 128.5718292, title: "새길시장앞" },
{
title: "대구학교지원센터건너 (대구학생예술창작터건너)",
lat: 35.87733323,
lng: 128.5550656,
},
{
title: "중리시장앞",
lat: 35.86935327,
lng: 128.5483552,
},
{
title: "팔달시장역",
lat: 35.88888348,
lng: 128.5669521,
},
{
title: "대구의료원앞",
lat: 35.8588155,
lng: 128.5406238,
},
{
title: "서대구고속버스터미널",
lat: 35.89020167,
lng: 128.55759,
},
{
lat: 35.88044982,
lng: 128.5802635,
title: "고성아파트건너(서편)",
},
{
title: "서대구공단네거리2",
lat: 35.86955377,
lng: 128.5379961,
},
{ lat: 35.8720643, lng: 128.564034, title: "KT서대구지사앞" },
{
title: "인지초등학교입구",
lat: 35.884385,
lng: 128.5652817,
},
];
case "남구":
return [
{
title: "한영한마음아동병원앞",
lat: 35.83484218,
lng: 128.5557824,
},
{
title: "경일여자고등학교건너",
lat: 35.8376872,
lng: 128.5989861,
},
{ lat: 35.8389786, lng: 128.5753178, title: "안지랑네거리1" },
{
title: "대구가톨릭대학병원앞",
lat: 35.84451925,
lng: 128.5690864,
},
{ title: "대명공연거리건너", lat: 35.85411348, lng: 128.5832386 },
{
title: "계명대학교대명캠퍼스앞",
lat: 35.85712228,
lng: 128.5808087,
},
{ title: "경북여상건너", lat: 35.85515342, lng: 128.590812 },
{ title: "남구청네거리1", lat: 35.84483677, lng: 128.599826 },
{ title: "충혼탑건너", lat: 35.8333106, lng: 128.584565 },
{ title: "대명사회복지관앞", lat: 35.85098627, lng: 128.5757296 },
{
lat: 35.83259465,
lng: 128.5977975,
title: "남구종합스포츠타운앞",
},
{
lat: 35.82875333,
lng: 128.588805,
title: "앞산공원관리사무소건너",
},
{
lat: 35.85387017,
lng: 128.5983885,
title: "상수도중남부사업소앞",
},
{ title: "골안골지하보도앞", lat: 35.831181, lng: 128.5705534 },
];
case "북구":
return [
{
title: "경북대학교북문건너",
lat: 35.89300942,
lng: 128.6096682,
},
{ title: "대구과학대학교1", lat: 35.92986758, lng: 128.5481056 },
{ title: "대구병원건너", lat: 35.91287562, lng: 128.5483566 },
{
title: "대구삼성창조캠퍼스4",
lat: 35.8811116,
lng: 128.5963617,
},
{ title: "팔달역1", lat: 35.89756167, lng: 128.5478283 },
{ title: "대구시산격청사앞", lat: 35.89084303, lng: 128.5980981 },
{
title: "칠성시장(전자상가건너)",
lat: 35.8787282,
lng: 128.6030286,
},
{ title: "엑스코건너", lat: 35.90781185, lng: 128.6106009 },
{ lat: 35.88804712, lng: 128.5829176, title: "북대구세무서앞" },
{ lat: 35.94442, lng: 128.614825, title: "연경우방아이유쉘앞" },
{ title: "성북시장건너", lat: 35.8949173, lng: 128.5946333 },
{ title: "칠곡경북대병원", lat: 35.95746167, lng: 128.5658683 },
{
title: "대구국제고등학교앞",
lat: 35.95501667,
lng: 128.582185,
},
{ title: "대구국제사격장", lat: 35.91053667, lng: 128.5252783 },
];
case "수성구":
return [
{ title: "경신고등학교건너", lat: 35.85899258, lng: 128.637247 },
{ title: "중동시장앞", lat: 35.8411088, lng: 128.6096677 },
{
title: "대공원역(5번출구)",
lat: 35.84211973,
lng: 128.6814547,
},
{ title: "수성못오거리1", lat: 35.82654728, lng: 128.6101052 },
{ title: "성동초등학교건너", lat: 35.84037885, lng: 128.6333003 },
{
title: "정호승문학관앞(구.신천시장)",
lat: 35.8658722,
lng: 128.61797,
},
{ title: "대구경찰청", lat: 35.8286438, lng: 128.6335585 },
{ title: "수성도서관앞2", lat: 35.87246847, lng: 128.6372146 },
{ lat: 35.81512183, lng: 128.6489387, title: "범물두성타운건너" },
{
title: "대구시지노인전문병원앞",
lat: 35.82830333,
lng: 128.7098167,
},
{ title: "대구시교육청건너", lat: 35.85677518, lng: 128.6136881 },
{ lat: 35.84039188, lng: 128.7113513, title: "매호성당건너" },
{ title: "육상진흥센터앞", lat: 35.82915167, lng: 128.6791017 },
{ lat: 35.8485368, lng: 128.7208857, title: "성동마을건너" },
];
case "달서구":
return [
{ title: "서부정류장1", lat: 35.83755852, lng: 128.5564155 },
{
title: "제일여자상업고등학교건너",
lat: 35.84177238,
lng: 128.5447025,
},
{ title: "서남시장앞1", lat: 35.85341165, lng: 128.5452775 },
{ title: "문성병원건너", lat: 35.84826043, lng: 128.5687482 },
{ title: "이마트월배점앞", lat: 35.81580833, lng: 128.5233033 },
{ lat: 35.83215318, lng: 128.5366278, title: "월성주공5단지앞" },
{
title: "롯데백화점상인점건너",
lat: 35.81950655,
lng: 128.5392608,
},
{
title: "이월드(구.우방랜드)정문",
lat: 35.85429967,
lng: 128.560512,
},
{ title: "중앙일보앞", lat: 35.83589367, lng: 128.5124943 },
{ title: "모다아울렛앞", lat: 35.8391586, lng: 128.4916602 },
{ title: "이곡장미공원건너", lat: 35.85764308, lng: 128.5155571 },
{
title: "정부대구지방합동청사후문2",
lat: 35.80486963,
lng: 128.5178091,
},
{ lat: 35.81443557, lng: 128.5417732, title: "상인초등학교앞" },
{ title: "대곡중학교건너", lat: 35.8073036, lng: 128.5328581 },
];
case "달성군":
return [
{ title: "대실역(2번출구)", lat: 35.857975, lng: 128.4646267 },
{
title: "한남중미용정보고등학교건너",
lat: 35.8054632,
lng: 128.5011993,
},
{ lat: 35.72920795, lng: 128.4521517, title: "달성군민운동장앞" },
{ title: "달성군청앞", lat: 35.775172, lng: 128.430477 },
{
title: "에코테마파크대구숲앞",
lat: 35.79576673,
lng: 128.627297,
},
{ title: "국립대구과학관앞", lat: 35.6866, lng: 128.463515 },
{
lat: 35.88425167,
lng: 128.4220817,
title: "달서중고등학교건너",
},
{ title: "현풍주공아파트", lat: 35.69176672, lng: 128.4429051 },
{
title: "정대리(대구미술광장)",
lat: 35.75509335,
lng: 128.5671907,
},
{
title: "마비정벽화마을(종점)",
lat: 35.78000638,
lng: 128.5413334,
},
{ title: "가창중학교앞", lat: 35.77405603, lng: 128.646051 },
{ title: "노사평화의전당앞", lat: 35.65123, lng: 128.4177667 },
{
title: "달성스포츠파크건너",
lat: 35.70101443,
lng: 128.4418018,
},
{ lat: 35.7706067, lng: 128.4894505, title: "송해공원" },
];
case "스마트쉘터":
return [
{ lat: 35.88455522, lng: 128.5903715, title: "이마트칠성점앞" },
{
lat: 35.89048403,
lng: 128.5556656,
title: "트레이더스홀세일클럽비산점앞",
},
{
lat: 35.8948069,
lng: 128.6187185,
title: "영진전문대학교후문앞",
},
{ lat: 35.93178333, lng: 128.5553817, title: "칠곡운암역1" },
{ lat: 35.86894817, lng: 128.5474794, title: "중리롯데캐슬앞" },
{ lat: 35.85578842, lng: 128.551489, title: "광장타운앞" },
{ lat: 35.8712853, lng: 128.5589189, title: "서구청앞" },
{
lat: 35.87194252,
lng: 128.5739677,
title: "대구제일고등학교앞",
},
{
lat: 35.88560993,
lng: 128.5740196,
title: "원대동행정복지센터앞",
},
{ lat: 35.88435658, lng: 128.5558072, title: "북부정류장" },
{
lat: 35.8522146,
lng: 128.4848446,
title: "계명대학교정문건너",
},
{ lat: 35.848725, lng: 128.5278917, title: "용산역(2번출구)" },
{ lat: 35.84964447, lng: 128.5316197, title: "용산네거리2" },
{
lat: 35.80842333,
lng: 128.517995,
title: "수목원삼성래미안1차앞",
},
{
lat: 35.87030917,
lng: 128.5983161,
title: "2.28기념중앙공원앞",
},
{ lat: 35.89293667, lng: 128.609955, title: "경북대학교북문앞" },
];
case "대구시전체":
return [
{
title: "약령시건너(동성로입구)",
lat: 35.86784188,
lng: 128.5936867,
},
{ lat: 35.87028367, lng: 128.5897118, title: "곽병원건너" },
{ title: "대구역앞", lat: 35.8745935, lng: 128.5976212 },
{ title: "중구청앞", lat: 35.86898298, lng: 128.6069025 },
{
title: "계명대학교 대구동산병원앞1",
lat: 35.8685509,
lng: 128.5823385,
},
{
title: "방천시장(김광석길)앞",
lat: 35.86224523,
lng: 128.6063391,
},
{ title: "봉산문화거리앞", lat: 35.86463592, lng: 128.5971731 },
{ title: "경북공고앞", lat: 35.85790098, lng: 128.5828075 },
{ title: "수창초등학교", lat: 35.875345, lng: 128.58224 },
{
title: "상수도사업본부건너",
lat: 35.85648675,
lng: 128.5961886,
},
{
lat: 35.86594632,
lng: 128.5852631,
title: "엘디스리젠트호텔앞",
},
{ title: "대구향교건너", lat: 35.86023935, lng: 128.5958776 },
{ title: "중부소방서건너", lat: 35.86312555, lng: 128.5755587 },
{ lat: 35.85718537, lng: 128.6046642, title: "청운맨션앞" },
{ title: "동대구역", lat: 35.87939167, lng: 128.6269944 },
{ title: "대구국제공항앞", lat: 35.89926493, lng: 128.6364056 },
{ lat: 35.87414717, lng: 128.6138597, title: "신천LH아파트앞" },
{
title: "반야월역(3번출구)",
lat: 35.86584078,
lng: 128.7146342,
},
{
title: "대구일마이스터고교앞",
lat: 35.88089507,
lng: 128.6475359,
},
{ title: "파계사(종점)", lat: 35.99035823, lng: 128.6369601 },
{ lat: 35.87762082, lng: 128.6765476, title: "백자맨션앞" },
{ lat: 35.91459735, lng: 128.6412378, title: "불로동고분군앞" },
{ lat: 35.87373667, lng: 128.749895, title: "LH10단지아파트앞" },
{ title: "율하근린공원건너", lat: 35.86820333, lng: 128.6917533 },
{
title: "안심도서관1(서편)",
lat: 35.85990667,
lng: 128.6997217,
},
{
title: "방짜유기박물관건너",
lat: 35.96447708,
lng: 128.6978905,
},
{ title: "섬뜸마을", lat: 35.9324956, lng: 128.6883578 },
{
title: "진인동(진정마을)2",
lat: 35.95819588,
lng: 128.7146076,
},
{ title: "큰장네거리1", lat: 35.8711705, lng: 128.5782699 },
{ lat: 35.86316702, lng: 128.5718292, title: "새길시장앞" },
{
title: "대구과학기술고등학교앞",
lat: 35.85578237,
lng: 128.5477465,
},
{ title: "서대구역(남측)1", lat: 35.88068167, lng: 128.540185 },
{ lat: 35.8720643, lng: 128.564034, title: "KT서대구지사앞" },
{ title: "비산초등학교앞", lat: 35.879265, lng: 128.5651663 },
{
title: "대구학교지원센터건너 (대구학생예술창작터건너)",
lat: 35.87733323,
lng: 128.5550656,
},
{ title: "중리시장앞", lat: 35.86935327, lng: 128.5483552 },
{ title: "팔달시장역", lat: 35.88888348, lng: 128.5669521 },
{ title: "대구의료원앞", lat: 35.8588155, lng: 128.5406238 },
{
title: "서대구고속버스터미널",
lat: 35.89020167,
lng: 128.55759,
},
{
lat: 35.88044982,
lng: 128.5802635,
title: "고성아파트건너(서편)",
},
{
title: "서대구공단네거리2",
lat: 35.86955377,
lng: 128.5379961,
},
{ title: "인지초등학교입구", lat: 35.884385, lng: 128.5652817 },
{
title: "한영한마음아동병원앞",
lat: 35.83484218,
lng: 128.5557824,
},
{
title: "경일여자고등학교건너",
lat: 35.8376872,
lng: 128.5989861,
},
{ lat: 35.8389786, lng: 128.5753178, title: "안지랑네거리1" },
{
title: "대구가톨릭대학병원앞",
lat: 35.84451925,
lng: 128.5690864,
},
{ title: "대명공연거리건너", lat: 35.85411348, lng: 128.5832386 },
{
title: "계명대학교대명캠퍼스앞",
lat: 35.85712228,
lng: 128.5808087,
},
{ title: "경북여상건너", lat: 35.85515342, lng: 128.590812 },
{ title: "남구청네거리1", lat: 35.84483677, lng: 128.599826 },
{ title: "충혼탑건너", lat: 35.8333106, lng: 128.584565 },
{ title: "대명사회복지관앞", lat: 35.85098627, lng: 128.5757296 },
{
lat: 35.83259465,
lng: 128.5977975,
title: "남구종합스포츠타운앞",
},
{
lat: 35.82875333,
lng: 128.588805,
title: "앞산공원관리사무소건너",
},
{
lat: 35.85387017,
lng: 128.5983885,
title: "상수도중남부사업소앞",
},
{ title: "골안골지하보도앞", lat: 35.831181, lng: 128.5705534 },
{
title: "경북대학교북문건너",
lat: 35.89300942,
lng: 128.6096682,
},
{ title: "대구과학대학교1", lat: 35.92986758, lng: 128.5481056 },
{ title: "대구병원건너", lat: 35.91287562, lng: 128.5483566 },
{
title: "대구삼성창조캠퍼스4",
lat: 35.8811116,
lng: 128.5963617,
},
{ title: "팔달역1", lat: 35.89756167, lng: 128.5478283 },
{ title: "대구시산격청사앞", lat: 35.89084303, lng: 128.5980981 },
{
title: "칠성시장(전자상가건너)",
lat: 35.8787282,
lng: 128.6030286,
},
{ title: "엑스코건너", lat: 35.90781185, lng: 128.6106009 },
{ lat: 35.88804712, lng: 128.5829176, title: "북대구세무서앞" },
{ lat: 35.94442, lng: 128.614825, title: "연경우방아이유쉘앞" },
{ title: "성북시장건너", lat: 35.8949173, lng: 128.5946333 },
{ title: "칠곡경북대병원", lat: 35.95746167, lng: 128.5658683 },
{
title: "대구국제고등학교앞",
lat: 35.95501667,
lng: 128.582185,
},
{ title: "대구국제사격장", lat: 35.91053667, lng: 128.5252783 },
{ title: "경신고등학교건너", lat: 35.85899258, lng: 128.637247 },
{ title: "중동시장앞", lat: 35.8411088, lng: 128.6096677 },
{
title: "대공원역(5번출구)",
lat: 35.84211973,
lng: 128.6814547,
},
{ title: "수성못오거리1", lat: 35.82654728, lng: 128.6101052 },
{ title: "성동초등학교건너", lat: 35.84037885, lng: 128.6333003 },
{
title: "정호승문학관앞(구.신천시장)",
lat: 35.8658722,
lng: 128.61797,
},
{ title: "대구경찰청", lat: 35.8286438, lng: 128.6335585 },
{ title: "수성도서관앞2", lat: 35.87246847, lng: 128.6372146 },
{ lat: 35.81512183, lng: 128.6489387, title: "범물두성타운건너" },
{
title: "대구시지노인전문병원앞",
lat: 35.82830333,
lng: 128.7098167,
},
{ title: "대구시교육청건너", lat: 35.85677518, lng: 128.6136881 },
{ lat: 35.84039188, lng: 128.7113513, title: "매호성당건너" },
{ title: "육상진흥센터앞", lat: 35.82915167, lng: 128.6791017 },
{ lat: 35.8485368, lng: 128.7208857, title: "성동마을건너" },
{ title: "서부정류장1", lat: 35.83755852, lng: 128.5564155 },
{
title: "제일여자상업고등학교건너",
lat: 35.84177238,
lng: 128.5447025,
},
{ title: "서남시장앞1", lat: 35.85341165, lng: 128.5452775 },
{ title: "문성병원건너", lat: 35.84826043, lng: 128.5687482 },
{ title: "이마트월배점앞", lat: 35.81580833, lng: 128.5233033 },
{ lat: 35.83215318, lng: 128.5366278, title: "월성주공5단지앞" },
{
title: "롯데백화점상인점건너",
lat: 35.81950655,
lng: 128.5392608,
},
{
title: "이월드(구.우방랜드)정문",
lat: 35.85429967,
lng: 128.560512,
},
{ title: "중앙일보앞", lat: 35.83589367, lng: 128.5124943 },
{ title: "모다아울렛앞", lat: 35.8391586, lng: 128.4916602 },
{ title: "이곡장미공원건너", lat: 35.85764308, lng: 128.5155571 },
{
title: "정부대구지방합동청사후문2",
lat: 35.80486963,
lng: 128.5178091,
},
{ lat: 35.81443557, lng: 128.5417732, title: "상인초등학교앞" },
{ title: "대곡중학교건너", lat: 35.8073036, lng: 128.5328581 },
{ title: "대실역(2번출구)", lat: 35.857975, lng: 128.4646267 },
{
title: "한남중미용정보고등학교건너",
lat: 35.8054632,
lng: 128.5011993,
},
{ lat: 35.72920795, lng: 128.4521517, title: "달성군민운동장앞" },
{ title: "달성군청앞", lat: 35.775172, lng: 128.430477 },
{
title: "에코테마파크대구숲앞",
lat: 35.79576673,
lng: 128.627297,
},
{ title: "국립대구과학관앞", lat: 35.6866, lng: 128.463515 },
{
lat: 35.88425167,
lng: 128.4220817,
title: "달서중고등학교건너",
},
{ title: "현풍주공아파트", lat: 35.69176672, lng: 128.4429051 },
{
title: "정대리(대구미술광장)",
lat: 35.75509335,
lng: 128.5671907,
},
{
title: "마비정벽화마을(종점)",
lat: 35.78000638,
lng: 128.5413334,
},
{ title: "가창중학교앞", lat: 35.77405603, lng: 128.646051 },
{ title: "노사평화의전당앞", lat: 35.65123, lng: 128.4177667 },
{
title: "달성스포츠파크건너",
lat: 35.70101443,
lng: 128.4418018,
},
{ lat: 35.7706067, lng: 128.4894505, title: "송해공원" },
];
default:
return [];
}
}
function getDistrictPath(district) {
// 각 구역의 경계 좌표를 반환하는 함수
switch (district) {
case "중구":
return [
// 중구의 경계 좌표 추가
[
new naver.maps.LatLng(35.86827404494616, 128.59981147034233),
new naver.maps.LatLng(35.867658484495436, 128.6025209366928),
new naver.maps.LatLng(35.86548347049956, 128.61317315398796),
new naver.maps.LatLng(35.86184188060294, 128.6096160692728),
new naver.maps.LatLng(35.86369425086482, 128.60029226446056),
new naver.maps.LatLng(35.86375392708425, 128.59999180678676),
new naver.maps.LatLng(35.86394988318623, 128.60005150168956),
new naver.maps.LatLng(35.86418386722333, 128.59967123354437),
new naver.maps.LatLng(35.864627857907784, 128.59866057509242),
new naver.maps.LatLng(35.864960098484836, 128.59778313443206),
new naver.maps.LatLng(35.86497984670332, 128.59772547439331),
new naver.maps.LatLng(35.86512029008691, 128.59754039248406),
new naver.maps.LatLng(35.865389088431805, 128.597186156744),
new naver.maps.LatLng(35.86716631857702, 128.5952997837392),
new naver.maps.LatLng(35.86834458433147, 128.5954390303595),
new naver.maps.LatLng(35.868356923449696, 128.59938819202057),
new naver.maps.LatLng(35.86832164626987, 128.5995697245268),
new naver.maps.LatLng(35.86827404494616, 128.59981147034233),
],
[
new naver.maps.LatLng(35.87480494604067, 128.60136171435073),
new naver.maps.LatLng(35.86827404494616, 128.59981147034233),
new naver.maps.LatLng(35.86832164626987, 128.5995697245268),
new naver.maps.LatLng(35.868356923449696, 128.59938819202057),
new naver.maps.LatLng(35.86834458433147, 128.5954390303595),
new naver.maps.LatLng(35.86716631857702, 128.5952997837392),
new naver.maps.LatLng(35.865389088431805, 128.597186156744),
new naver.maps.LatLng(35.86512029008691, 128.59754039248406),
new naver.maps.LatLng(35.86497984670332, 128.59772547439331),
new naver.maps.LatLng(35.864960098484836, 128.59778313443206),
new naver.maps.LatLng(35.864627857907784, 128.59866057509242),
new naver.maps.LatLng(35.86418386722333, 128.59967123354437),
new naver.maps.LatLng(35.86394988318623, 128.60005150168956),
new naver.maps.LatLng(35.86375392708425, 128.59999180678676),
new naver.maps.LatLng(35.860498153133385, 128.60073088698059),
new naver.maps.LatLng(35.86003198419164, 128.59645346200725),
new naver.maps.LatLng(35.8600637269212, 128.59643612128934),
new naver.maps.LatLng(35.860579008337986, 128.59617103569286),
new naver.maps.LatLng(35.86078553792228, 128.5960699090724),
new naver.maps.LatLng(35.86100099296915, 128.5959644259569),
new naver.maps.LatLng(35.861025438005946, 128.59595246223435),
new naver.maps.LatLng(35.86157849277505, 128.5957472933539),
new naver.maps.LatLng(35.86429424099944, 128.59479889389266),
new naver.maps.LatLng(35.866121405261005, 128.59346729283766),
new naver.maps.LatLng(35.86990128973006, 128.59365520973202),
new naver.maps.LatLng(35.87205880405248, 128.59407497386147),
new naver.maps.LatLng(35.875297745352825, 128.59494637524298),
new naver.maps.LatLng(35.87546406962741, 128.5991411135269),
new naver.maps.LatLng(35.87480494604067, 128.60136171435073),
],
[
new naver.maps.LatLng(35.875297745352825, 128.59494637524298),
new naver.maps.LatLng(35.87205880405248, 128.59407497386147),
new naver.maps.LatLng(35.86990128973006, 128.59365520973202),
new naver.maps.LatLng(35.866121405261005, 128.59346729283766),
new naver.maps.LatLng(35.86629687447827, 128.59239056064428),
new naver.maps.LatLng(35.86610783552169, 128.59086183058736),
new naver.maps.LatLng(35.86636635045508, 128.5894635688341),
new naver.maps.LatLng(35.86657043329652, 128.58835962031208),
new naver.maps.LatLng(35.86664947141975, 128.5879320583128),
new naver.maps.LatLng(35.86666513460822, 128.58784730299269),
new naver.maps.LatLng(35.86664165794147, 128.58777033973809),
new naver.maps.LatLng(35.86638945191782, 128.58696338651328),
new naver.maps.LatLng(35.86514618403004, 128.58235034174163),
new naver.maps.LatLng(35.87059374299798, 128.5826091747158),
new naver.maps.LatLng(35.87052035050358, 128.58515530564048),
new naver.maps.LatLng(35.8700633844801, 128.58724705539385),
new naver.maps.LatLng(35.87018172537615, 128.58726199850804),
new naver.maps.LatLng(35.87027277651064, 128.5872734950472),
new naver.maps.LatLng(35.87567046374412, 128.58787391608374),
new naver.maps.LatLng(35.8775254076706, 128.58837879477232),
new naver.maps.LatLng(35.876309776132445, 128.59491665007616),
new naver.maps.LatLng(35.875297745352825, 128.59494637524298),
],
[
new naver.maps.LatLng(35.87907855152337, 128.58017175330784),
new naver.maps.LatLng(35.8775254076706, 128.58837879477232),
new naver.maps.LatLng(35.87567046374412, 128.58787391608374),
new naver.maps.LatLng(35.87027277651064, 128.5872734950472),
new naver.maps.LatLng(35.87018172537615, 128.58726199850804),
new naver.maps.LatLng(35.8700633844801, 128.58724705539385),
new naver.maps.LatLng(35.87052035050358, 128.58515530564048),
new naver.maps.LatLng(35.87059374299798, 128.5826091747158),
new naver.maps.LatLng(35.87080589006497, 128.5823870485221),
new naver.maps.LatLng(35.8734089735031, 128.58210924962873),
new naver.maps.LatLng(35.87369423316664, 128.58021207206477),
new naver.maps.LatLng(35.87361597069433, 128.58011287528075),
new naver.maps.LatLng(35.87352526930964, 128.57999793213807),
new naver.maps.LatLng(35.87316412105774, 128.57971053685634),
new naver.maps.LatLng(35.87297923067011, 128.57957950138763),
new naver.maps.LatLng(35.87283071947707, 128.57954934424149),
new naver.maps.LatLng(35.87277308853002, 128.57953764487686),
new naver.maps.LatLng(35.87265453213991, 128.57937180589877),
new naver.maps.LatLng(35.87259113385741, 128.5792711103369),
new naver.maps.LatLng(35.87237796008176, 128.57891324748982),
new naver.maps.LatLng(35.87204130850305, 128.577928506664),
new naver.maps.LatLng(35.87196383673627, 128.57697441020116),
new naver.maps.LatLng(35.871963137626395, 128.57681124161078),
new naver.maps.LatLng(35.87304483127607, 128.57566174791862),
new naver.maps.LatLng(35.873091684273135, 128.57562564318513),
new naver.maps.LatLng(35.87343173680526, 128.57559141261393),
new naver.maps.LatLng(35.87347013834237, 128.57558754739932),
new naver.maps.LatLng(35.87404506724287, 128.57559607906484),
new naver.maps.LatLng(35.876055360163896, 128.57665285702345),
new naver.maps.LatLng(35.87622899484495, 128.57686465738666),
new naver.maps.LatLng(35.876187852358946, 128.57694023928968),
new naver.maps.LatLng(35.8755782780921, 128.57806019868906),
new naver.maps.LatLng(35.87535706432395, 128.57846664460521),
new naver.maps.LatLng(35.87532781665804, 128.5793056684623),
new naver.maps.LatLng(35.876239250016155, 128.57839059434426),
new naver.maps.LatLng(35.87949572893189, 128.57794370112424),
new naver.maps.LatLng(35.87907855152337, 128.58017175330784),
],
[
new naver.maps.LatLng(35.87059374299798, 128.5826091747158),
new naver.maps.LatLng(35.86514618403004, 128.58235034174163),
new naver.maps.LatLng(35.86476194105173, 128.58172166692066),