summaryrefslogtreecommitdiff
path: root/map_8c.html
blob: fc40a04eb575307ee7b73649695bed48e9f77d42 (plain)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>navit: map.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">navit
   &#160;<span id="projectnumber">0.5.3-trunk</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('map_8c.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">map.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Contains code that makes navit able to load maps.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;glib.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="debug_8h_source.html">debug.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="coord_8h_source.html">coord.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="projection_8h_source.html">projection.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="item_8h_source.html">item.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="map_8h_source.html">map.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="maptype_8h_source.html">maptype.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="transform_8h_source.html">transform.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="plugin_8h_source.html">plugin.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="callback_8h_source.html">callback.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="country_8h_source.html">country.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="xmlconfig_8h_source.html">xmlconfig.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap.html">map</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds information about a map.  <a href="structmap.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__rect.html">map_rect</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Describes a rectangular extract of a map.  <a href="structmap__rect.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__search.html">map_search</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds information about a search on a map.  <a href="structmap__search.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a9a8864bcc7e1f687fe52c38b36bcad63"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structmap.html">map</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a9a8864bcc7e1f687fe52c38b36bcad63">map_new</a> (struct <a class="el" href="structattr.html">attr</a> *<a class="el" href="structparent.html">parent</a>, struct <a class="el" href="structattr.html">attr</a> **attrs)</td></tr>
<tr class="memdesc:a9a8864bcc7e1f687fe52c38b36bcad63"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a new map.  <a href="#a9a8864bcc7e1f687fe52c38b36bcad63">More...</a><br/></td></tr>
<tr class="separator:a9a8864bcc7e1f687fe52c38b36bcad63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea4bb45171274a8b6bd4de3d33606f35"><td class="memItemLeft" align="right" valign="top"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#aea4bb45171274a8b6bd4de3d33606f35">map_get_attr</a> (struct <a class="el" href="structmap.html">map</a> *this_, enum <a class="el" href="attr_8h.html#a9a9ab3c12bda86add06f89976f36f98c">attr_type</a> <a class="el" href="garmin__img_8c.html#a8f7b0321b1954f07b747aeb1e311814e">type</a>, struct <a class="el" href="structattr.html">attr</a> *<a class="el" href="structattr.html">attr</a>, struct <a class="el" href="structattr__iter.html">attr_iter</a> *iter)</td></tr>
<tr class="memdesc:aea4bb45171274a8b6bd4de3d33606f35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets an attribute from a map.  <a href="#aea4bb45171274a8b6bd4de3d33606f35">More...</a><br/></td></tr>
<tr class="separator:aea4bb45171274a8b6bd4de3d33606f35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a56a78da425713d4fe965e724d9e09e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a6a56a78da425713d4fe965e724d9e09e">map_set_attr</a> (struct <a class="el" href="structmap.html">map</a> *this_, struct <a class="el" href="structattr.html">attr</a> *<a class="el" href="structattr.html">attr</a>)</td></tr>
<tr class="memdesc:a6a56a78da425713d4fe965e724d9e09e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets an attribute of a map.  <a href="#a6a56a78da425713d4fe965e724d9e09e">More...</a><br/></td></tr>
<tr class="separator:a6a56a78da425713d4fe965e724d9e09e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a878e29885a9aa78e417e56354dc64845"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a878e29885a9aa78e417e56354dc64845">map_add_callback</a> (struct <a class="el" href="structmap.html">map</a> *this_, struct <a class="el" href="structcallback.html">callback</a> *cb)</td></tr>
<tr class="memdesc:a878e29885a9aa78e417e56354dc64845"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers a new callback for attribute-change.  <a href="#a878e29885a9aa78e417e56354dc64845">More...</a><br/></td></tr>
<tr class="separator:a878e29885a9aa78e417e56354dc64845"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9f95fd57301452f5a93c0ffd75e13e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#af9f95fd57301452f5a93c0ffd75e13e0">map_remove_callback</a> (struct <a class="el" href="structmap.html">map</a> *this_, struct <a class="el" href="structcallback.html">callback</a> *cb)</td></tr>
<tr class="memdesc:af9f95fd57301452f5a93c0ffd75e13e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a callback from the list of attribute-change callbacks.  <a href="#af9f95fd57301452f5a93c0ffd75e13e0">More...</a><br/></td></tr>
<tr class="separator:af9f95fd57301452f5a93c0ffd75e13e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adacb9c6f689c49cea9651adecef9dbdb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#adacb9c6f689c49cea9651adecef9dbdb">map_requires_conversion</a> (struct <a class="el" href="structmap.html">map</a> *this_)</td></tr>
<tr class="memdesc:adacb9c6f689c49cea9651adecef9dbdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if strings from a map have to be converted.  <a href="#adacb9c6f689c49cea9651adecef9dbdb">More...</a><br/></td></tr>
<tr class="separator:adacb9c6f689c49cea9651adecef9dbdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a181e682ec4a9174897686bd91a89b9"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a7a181e682ec4a9174897686bd91a89b9">map_convert_string_tmp</a> (struct <a class="el" href="structmap.html">map</a> *this_, char *str)</td></tr>
<tr class="memdesc:a7a181e682ec4a9174897686bd91a89b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a string from a map into a temporary allocated buffer. Conversion is not performed and original string is returned if map doesn't require conversion. So lifetime of returned value is very limited.  <a href="#a7a181e682ec4a9174897686bd91a89b9">More...</a><br/></td></tr>
<tr class="separator:a7a181e682ec4a9174897686bd91a89b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af44c00a5c0938889e420cd8c5b87a92a"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#af44c00a5c0938889e420cd8c5b87a92a">map_convert_string</a> (struct <a class="el" href="structmap.html">map</a> *this_, char *str)</td></tr>
<tr class="memdesc:af44c00a5c0938889e420cd8c5b87a92a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a string from a map.  <a href="#af44c00a5c0938889e420cd8c5b87a92a">More...</a><br/></td></tr>
<tr class="separator:af44c00a5c0938889e420cd8c5b87a92a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23f07c7eafbdd5994dfdb8038d356516"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a23f07c7eafbdd5994dfdb8038d356516">map_convert_dup</a> (char *str)</td></tr>
<tr class="separator:a23f07c7eafbdd5994dfdb8038d356516"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4615d67b2a27e13f2341f278e9631c54"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a4615d67b2a27e13f2341f278e9631c54">map_convert_free</a> (char *str)</td></tr>
<tr class="memdesc:a4615d67b2a27e13f2341f278e9631c54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees the memory allocated for a converted string.  <a href="#a4615d67b2a27e13f2341f278e9631c54">More...</a><br/></td></tr>
<tr class="separator:a4615d67b2a27e13f2341f278e9631c54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a956c6e8398f832e31fe90634fa982dbf"><td class="memItemLeft" align="right" valign="top">enum <a class="el" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a956c6e8398f832e31fe90634fa982dbf">map_projection</a> (struct <a class="el" href="structmap.html">map</a> *this_)</td></tr>
<tr class="memdesc:a956c6e8398f832e31fe90634fa982dbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the projection of a map.  <a href="#a956c6e8398f832e31fe90634fa982dbf">More...</a><br/></td></tr>
<tr class="separator:a956c6e8398f832e31fe90634fa982dbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1eb8e44290e34baa9b178624fc32beec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a1eb8e44290e34baa9b178624fc32beec">map_set_projection</a> (struct <a class="el" href="structmap.html">map</a> *this_, enum <a class="el" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a> pro)</td></tr>
<tr class="memdesc:a1eb8e44290e34baa9b178624fc32beec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the projection of a map.  <a href="#a1eb8e44290e34baa9b178624fc32beec">More...</a><br/></td></tr>
<tr class="separator:a1eb8e44290e34baa9b178624fc32beec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06f624f20492c8e9e9f3c7eb43b70396"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a06f624f20492c8e9e9f3c7eb43b70396">map_destroy</a> (struct <a class="el" href="structmap.html">map</a> *m)</td></tr>
<tr class="memdesc:a06f624f20492c8e9e9f3c7eb43b70396"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys an opened map.  <a href="#a06f624f20492c8e9e9f3c7eb43b70396">More...</a><br/></td></tr>
<tr class="separator:a06f624f20492c8e9e9f3c7eb43b70396"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52e6ae5ec3beaec49ce12ce603d7d72a"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structmap__rect.html">map_rect</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a52e6ae5ec3beaec49ce12ce603d7d72a">map_rect_new</a> (struct <a class="el" href="structmap.html">map</a> *m, struct <a class="el" href="structmap__selection.html">map_selection</a> *sel)</td></tr>
<tr class="memdesc:a52e6ae5ec3beaec49ce12ce603d7d72a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new map rect.  <a href="#a52e6ae5ec3beaec49ce12ce603d7d72a">More...</a><br/></td></tr>
<tr class="separator:a52e6ae5ec3beaec49ce12ce603d7d72a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae025c855207536977afd84d39b316e9c"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structitem.html">item</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#ae025c855207536977afd84d39b316e9c">map_rect_get_item</a> (struct <a class="el" href="structmap__rect.html">map_rect</a> *mr)</td></tr>
<tr class="memdesc:ae025c855207536977afd84d39b316e9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the next item from a map rect.  <a href="#ae025c855207536977afd84d39b316e9c">More...</a><br/></td></tr>
<tr class="separator:ae025c855207536977afd84d39b316e9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e27d0888db14bf9b88727ead943eaf6"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structitem.html">item</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a9e27d0888db14bf9b88727ead943eaf6">map_rect_get_item_byid</a> (struct <a class="el" href="structmap__rect.html">map_rect</a> *mr, <a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> id_hi, <a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> id_lo)</td></tr>
<tr class="memdesc:a9e27d0888db14bf9b88727ead943eaf6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the item specified by the ID.  <a href="#a9e27d0888db14bf9b88727ead943eaf6">More...</a><br/></td></tr>
<tr class="separator:a9e27d0888db14bf9b88727ead943eaf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe7311d63f1e8a4a697634cf79329f7d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#afe7311d63f1e8a4a697634cf79329f7d">map_rect_destroy</a> (struct <a class="el" href="structmap__rect.html">map_rect</a> *mr)</td></tr>
<tr class="memdesc:afe7311d63f1e8a4a697634cf79329f7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys a map rect.  <a href="#afe7311d63f1e8a4a697634cf79329f7d">More...</a><br/></td></tr>
<tr class="separator:afe7311d63f1e8a4a697634cf79329f7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3192f982f537a0eb5cc0e32f306ead2d"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structmap__search.html">map_search</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a3192f982f537a0eb5cc0e32f306ead2d">map_search_new</a> (struct <a class="el" href="structmap.html">map</a> *m, struct <a class="el" href="structitem.html">item</a> *<a class="el" href="structitem.html">item</a>, struct <a class="el" href="structattr.html">attr</a> *search_attr, <a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> partial)</td></tr>
<tr class="memdesc:a3192f982f537a0eb5cc0e32f306ead2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts a search on a map.  <a href="#a3192f982f537a0eb5cc0e32f306ead2d">More...</a><br/></td></tr>
<tr class="separator:a3192f982f537a0eb5cc0e32f306ead2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a6f7023b430cc03af1a8d72e8f6a09b"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structitem.html">item</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a2a6f7023b430cc03af1a8d72e8f6a09b">map_search_get_item</a> (struct <a class="el" href="structmap__search.html">map_search</a> *this_)</td></tr>
<tr class="memdesc:a2a6f7023b430cc03af1a8d72e8f6a09b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an item from a map search.  <a href="#a2a6f7023b430cc03af1a8d72e8f6a09b">More...</a><br/></td></tr>
<tr class="separator:a2a6f7023b430cc03af1a8d72e8f6a09b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17363cc27a950b21d4a10c1e4977f750"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a17363cc27a950b21d4a10c1e4977f750">map_search_destroy</a> (struct <a class="el" href="structmap__search.html">map_search</a> *this_)</td></tr>
<tr class="memdesc:a17363cc27a950b21d4a10c1e4977f750"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys a map search struct.  <a href="#a17363cc27a950b21d4a10c1e4977f750">More...</a><br/></td></tr>
<tr class="separator:a17363cc27a950b21d4a10c1e4977f750"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0160cd214565dad3584739d44fafed8"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structmap__selection.html">map_selection</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#ac0160cd214565dad3584739d44fafed8">map_selection_rect_new</a> (struct <a class="el" href="structpcoord.html">pcoord</a> *<a class="el" href="garmin__img_8c.html#a3bce700a88a243b80b791686799ae5f7">center</a>, <a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> distance, <a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> order)</td></tr>
<tr class="memdesc:ac0160cd214565dad3584739d44fafed8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new rectangular map selection.  <a href="#ac0160cd214565dad3584739d44fafed8">More...</a><br/></td></tr>
<tr class="separator:ac0160cd214565dad3584739d44fafed8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95b6e2263b7e7aed66a4a5d8ce8028c8"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structmap__selection.html">map_selection</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a95b6e2263b7e7aed66a4a5d8ce8028c8">map_selection_dup_pro</a> (struct <a class="el" href="structmap__selection.html">map_selection</a> *sel, enum <a class="el" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a> from, enum <a class="el" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a> to)</td></tr>
<tr class="memdesc:a95b6e2263b7e7aed66a4a5d8ce8028c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Duplicates a map selection, transforming coordinates.  <a href="#a95b6e2263b7e7aed66a4a5d8ce8028c8">More...</a><br/></td></tr>
<tr class="separator:a95b6e2263b7e7aed66a4a5d8ce8028c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41d391414ab9d50fd2e10a072a7e24fa"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structmap__selection.html">map_selection</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a41d391414ab9d50fd2e10a072a7e24fa">map_selection_dup</a> (struct <a class="el" href="structmap__selection.html">map_selection</a> *sel)</td></tr>
<tr class="memdesc:a41d391414ab9d50fd2e10a072a7e24fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Duplicates a map selection.  <a href="#a41d391414ab9d50fd2e10a072a7e24fa">More...</a><br/></td></tr>
<tr class="separator:a41d391414ab9d50fd2e10a072a7e24fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51455e36692349b9fecdd677a40c6c4f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a51455e36692349b9fecdd677a40c6c4f">map_selection_destroy</a> (struct <a class="el" href="structmap__selection.html">map_selection</a> *sel)</td></tr>
<tr class="memdesc:a51455e36692349b9fecdd677a40c6c4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys a map selection.  <a href="#a51455e36692349b9fecdd677a40c6c4f">More...</a><br/></td></tr>
<tr class="separator:a51455e36692349b9fecdd677a40c6c4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae555f508f81a2cab83100a675ddeb131"><td class="memItemLeft" align="right" valign="top"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#ae555f508f81a2cab83100a675ddeb131">map_selection_contains_item_rect</a> (struct <a class="el" href="structmap__selection.html">map_selection</a> *sel, struct <a class="el" href="structitem.html">item</a> *<a class="el" href="structitem.html">item</a>)</td></tr>
<tr class="memdesc:ae555f508f81a2cab83100a675ddeb131"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if a selection contains a rectangle containing an item.  <a href="#ae555f508f81a2cab83100a675ddeb131">More...</a><br/></td></tr>
<tr class="separator:ae555f508f81a2cab83100a675ddeb131"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ea9fcf03c34c4caf035f6597af9921f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a8ea9fcf03c34c4caf035f6597af9921f">map_selection_contains_item_range</a> (struct <a class="el" href="structmap__selection.html">map_selection</a> *sel, <a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> follow, struct <a class="el" href="structitem__range.html">item_range</a> *<a class="el" href="structrange.html">range</a>, <a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> count)</td></tr>
<tr class="memdesc:a8ea9fcf03c34c4caf035f6597af9921f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if a selection contains a item range.  <a href="#a8ea9fcf03c34c4caf035f6597af9921f">More...</a><br/></td></tr>
<tr class="separator:a8ea9fcf03c34c4caf035f6597af9921f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3e1e05fd13705105196919d3060ac5f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#ae3e1e05fd13705105196919d3060ac5f">map_selection_contains_item</a> (struct <a class="el" href="structmap__selection.html">map_selection</a> *sel, <a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> follow, enum <a class="el" href="item_8h.html#a2679318a14061852e50df3c6e4e42f62">item_type</a> <a class="el" href="garmin__img_8c.html#a8f7b0321b1954f07b747aeb1e311814e">type</a>)</td></tr>
<tr class="memdesc:ae3e1e05fd13705105196919d3060ac5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if a selection contains a item.  <a href="#ae3e1e05fd13705105196919d3060ac5f">More...</a><br/></td></tr>
<tr class="separator:ae3e1e05fd13705105196919d3060ac5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8337c095972c7c8f69679577668d6b5b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a8337c095972c7c8f69679577668d6b5b">map_priv_is</a> (struct <a class="el" href="structmap.html">map</a> *<a class="el" href="structmap.html">map</a>, struct <a class="el" href="structmap__priv.html">map_priv</a> *priv)</td></tr>
<tr class="memdesc:a8337c095972c7c8f69679577668d6b5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if a pointer points to the private data of a map.  <a href="#a8337c095972c7c8f69679577668d6b5b">More...</a><br/></td></tr>
<tr class="separator:a8337c095972c7c8f69679577668d6b5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8aa5e993e64e51a2d90b3be0251412cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a8aa5e993e64e51a2d90b3be0251412cc">map_dump_filedesc</a> (struct <a class="el" href="structmap.html">map</a> *<a class="el" href="structmap.html">map</a>, FILE *out)</td></tr>
<tr class="separator:a8aa5e993e64e51a2d90b3be0251412cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae69d4a7761530edd56139460233d26c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#ae69d4a7761530edd56139460233d26c6">map_dump_file</a> (struct <a class="el" href="structmap.html">map</a> *<a class="el" href="structmap.html">map</a>, const char *<a class="el" href="structfile.html">file</a>)</td></tr>
<tr class="separator:ae69d4a7761530edd56139460233d26c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af254bddcffd897fa184fc240eebb7edd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#af254bddcffd897fa184fc240eebb7edd">map_dump</a> (struct <a class="el" href="structmap.html">map</a> *<a class="el" href="structmap.html">map</a>)</td></tr>
<tr class="separator:af254bddcffd897fa184fc240eebb7edd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62e56af95eabfab1632e6888676a8127"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structitem.html">item</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a62e56af95eabfab1632e6888676a8127">map_rect_create_item</a> (struct <a class="el" href="structmap__rect.html">map_rect</a> *mr, enum <a class="el" href="item_8h.html#a2679318a14061852e50df3c6e4e42f62">item_type</a> type_)</td></tr>
<tr class="separator:a62e56af95eabfab1632e6888676a8127"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a17bf509a62d7e41cea2feab69b67d1ca"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a17bf509a62d7e41cea2feab69b67d1ca">map_converted_string_tmp</a> =NULL</td></tr>
<tr class="separator:a17bf509a62d7e41cea2feab69b67d1ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72847bda2999f94a238bde22e8072d2d"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structobject__func.html">object_func</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a72847bda2999f94a238bde22e8072d2d">map_func</a></td></tr>
<tr class="separator:a72847bda2999f94a238bde22e8072d2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Contains code that makes navit able to load maps. </p>
<p>Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team</p>
<p>This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.</p>
<p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</p>
<p>This file contains the code that makes navit able to load maps. Because navit is able to open maps in different formats, this code does not handle any map format itself. This is done by map plugins which register to this code by calling plugin_register_category_map().</p>
<p>When opening a new map, the map plugin will return a pointer to a <a class="el" href="structmap__priv.html" title="Represents the map from a single binfile. ">map_priv</a> struct, which can be defined by the map plugin and contains whatever private data the map plugin needs to access the map. This pointer will also be used as a "handle" to access the map opened.</p>
<p>A common task is to create a "map rect". A map rect is a rectangular part of the map, that one can for example retrieve items from. It is not possible to retrieve items directly from the complete map. Creating a map rect returns a pointer to a <a class="el" href="structmap__rect__priv.html" title="Implementation-specific map rect data. ">map_rect_priv</a>, which contains private data for the map rect and will be used as "handle" for this map rect. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a878e29885a9aa78e417e56354dc64845"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_add_callback </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>this_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structcallback.html">callback</a> *&#160;</td>
          <td class="paramname"><em>cb</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Registers a new callback for attribute-change. </p>
<p>This function registers a new callback function that should be called if the attributes of the map change.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>The map to associate the callback with </td></tr>
    <tr><td class="paramname">cb</td><td>The callback to add </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="structmap.html#a217b9c8299ba6e63c8612e092cc632b8">map::attr_cbl</a>, and <a class="el" href="callback_8c.html#a73fb26714769874fc25af119bbeeab1b">callback_list_add()</a>.</p>

<p>Referenced by <a class="el" href="gui__internal__priv_8h.html#ae8c488f3233d54f845d063363cae7f1c">gui_internal_button_map_attr_new()</a>, and <a class="el" href="group__navit.html#ga359fb8a89c570167d2f7eaef272502ce">navit_init()</a>.</p>

</div>
</div>
<a class="anchor" id="a23f07c7eafbdd5994dfdb8038d356516"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* map_convert_dup </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>References <a class="el" href="map_8c.html#a17bf509a62d7e41cea2feab69b67d1ca">map_converted_string_tmp</a>, and <a class="el" href="structattr.html#a2a2a2da11501e5c4b5464938c91b87e9">attr::str</a>.</p>

<p>Referenced by <a class="el" href="map_8h.html#af44c00a5c0938889e420cd8c5b87a92a">map_convert_string()</a>, <a class="el" href="search_8c.html#a7062d3d8731d11851e05eb5883831bba">search_list_house_number_dup()</a>, <a class="el" href="search_8c.html#a3dace3c25b6799210a51dcb9bb6ff548">search_list_street_dup()</a>, and <a class="el" href="search_8c.html#a0b8be3ae450fbd735422c68429b9f04a">search_list_town_dup()</a>.</p>

</div>
</div>
<a class="anchor" id="a4615d67b2a27e13f2341f278e9631c54"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_convert_free </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Frees the memory allocated for a converted string. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>The string to be freed </td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="classNGQPoint.html#a05d5c21ee472eb8e7ee1f89bd8d0dbd2">NGQPoint::_coordName()</a>, <a class="el" href="attr_8h.html#a90e7f35e990d0703bd01be1e95b2edc9">attr_to_text_ext()</a>, <a class="el" href="graphics_8c.html#aaf0787db32faf380b8853fcd3b635252">do_draw()</a>, <a class="el" href="classNGQPoint.html#ae78867c696a50e9f08c988283c04e2e8">NGQPoint::getPOI()</a>, <a class="el" href="graphics_8c.html#adb33069ce4c48cd35040977afb634426">graphics_process_selection_item()</a>, <a class="el" href="navigation_8c.html#af6ffd500c5d98b4e2845f33f6a45ec25">navigation_destroy_itms_cmds()</a>, <a class="el" href="navigation_8c.html#aba033513182cbb9186cec12356f8b8f1">navigation_itm_ways_clear()</a>, <a class="el" href="maptool_2misc_8c.html#af614abb9152680903a876b5f8cc7480a">phase1_map()</a>, <a class="el" href="search_8c.html#a9f6070a48d43d7629cbbacfe32e9dec1">search_list_common_new()</a>, <a class="el" href="search_8c.html#a8bd49d7825c1a0c38b386b79b8bfd03d">search_list_house_number_destroy()</a>, <a class="el" href="search_8c.html#a2dba3c8d2dd2234637d0a9589dc0a41a">search_list_street_destroy()</a>, and <a class="el" href="search_8c.html#a259b96da1896117c040a9cc02cd2ae85">search_list_town_destroy()</a>.</p>

</div>
</div>
<a class="anchor" id="af44c00a5c0938889e420cd8c5b87a92a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* map_convert_string </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>this_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts a string from a map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>The map the string to be converted is from </td></tr>
    <tr><td class="paramname">str</td><td>The string to be converted </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The converted string. It has to be <a class="el" href="map_8c.html#a4615d67b2a27e13f2341f278e9631c54" title="Frees the memory allocated for a converted string. ">map_convert_free()</a>d after use. </dd></dl>

<p>References <a class="el" href="map_8c.html#a23f07c7eafbdd5994dfdb8038d356516">map_convert_dup()</a>, and <a class="el" href="map_8c.html#a7a181e682ec4a9174897686bd91a89b9">map_convert_string_tmp()</a>.</p>

<p>Referenced by <a class="el" href="classNGQPoint.html#a05d5c21ee472eb8e7ee1f89bd8d0dbd2">NGQPoint::_coordName()</a>, <a class="el" href="attr_8h.html#a90e7f35e990d0703bd01be1e95b2edc9">attr_to_text_ext()</a>, <a class="el" href="graphics_8c.html#aaf0787db32faf380b8853fcd3b635252">do_draw()</a>, <a class="el" href="classBackend.html#a139da3a81c132887ce12937faaf8d864">Backend::get_pois()</a>, <a class="el" href="classNGQPoint.html#ae78867c696a50e9f08c988283c04e2e8">NGQPoint::getPOI()</a>, <a class="el" href="graphics_8c.html#adb33069ce4c48cd35040977afb634426">graphics_process_selection_item()</a>, <a class="el" href="gui__internal__poi_8h.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, <a class="el" href="navigation_8c.html#a59d000245202df0dfc71c6011e8b853e">navigation_itm_new()</a>, <a class="el" href="navigation_8c.html#a5eb317dac08c622f02b8181610750064">navigation_way_init()</a>, <a class="el" href="maptool_2misc_8c.html#af614abb9152680903a876b5f8cc7480a">phase1_map()</a>, <a class="el" href="search_8c.html#a9f6070a48d43d7629cbbacfe32e9dec1">search_list_common_new()</a>, <a class="el" href="search_8c.html#a4a933d5732299d41dfee4e1f3bded7e9">search_list_house_number_new()</a>, <a class="el" href="search_8c.html#abfe0d4629e879738bb807d8c664be1e2">search_list_street_new()</a>, <a class="el" href="search_8c.html#ad38ca441df85ebe3c070552204f5609a">search_list_town_new()</a>, and <a class="el" href="search__houseno__interpol_8h.html#afa05eeef61fce37a0de569132d7f92cb">search_next_interpolated_house_number()</a>.</p>

</div>
</div>
<a class="anchor" id="a7a181e682ec4a9174897686bd91a89b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* map_convert_string_tmp </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>this_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts a string from a map into a temporary allocated buffer. Conversion is not performed and original string is returned if map doesn't require conversion. So lifetime of returned value is very limited. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>The map the string to be converted is from </td></tr>
    <tr><td class="paramname">str</td><td>The string to be converted </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The converted string. Don't care about it after use. </dd></dl>

<p>References <a class="el" href="structmap__methods.html#af1b08a1287899114eba4a47645799da6">map_methods::charset</a>, <a class="el" href="debug_8h.html#aba3c0ccefe6daa8941b173073268729e">dbg</a>, <a class="el" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25a83f9ab2a71d2244b99268510714e94fb">lvl_error</a>, <a class="el" href="map_8c.html#a17bf509a62d7e41cea2feab69b67d1ca">map_converted_string_tmp</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, and <a class="el" href="structattr.html#a2a2a2da11501e5c4b5464938c91b87e9">attr::str</a>.</p>

<p>Referenced by <a class="el" href="qt5__qml_2proxy_8h.html#acb1b7273c932f27de9355f80280892b9">get_icon()</a>, <a class="el" href="gui__internal__priv_8h.html#a79dd50c54ad2681581e7134f3fc06b1f">gui_internal_cmd_bookmarks()</a>, <a class="el" href="gui__internal__poi_8h.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, <a class="el" href="gui__internal__poi_8c.html#a5253d858d08a2d126abf375259537735">gui_internal_cmd_pois_item_selected()</a>, <a class="el" href="gui__internal__priv_8h.html#a182f39c0a04cd59ff393a6dc66062f55">gui_internal_cmd_position_do()</a>, <a class="el" href="gui__internal_8c.html#ad82ad0f8ba8a81232532bbaf0f20c9a6">gui_internal_cmd_view_in_browser()</a>, <a class="el" href="gui__internal__poi_8h.html#ac4ec2300e00a6d4d859e342d5ad981cb">gui_internal_compose_item_address_string()</a>, <a class="el" href="gui__internal__poi_8c.html#aa66417a00f992898fb9685cd73f44ccb">gui_internal_poi_icon()</a>, <a class="el" href="gui__internal__priv_8h.html#a256ca02bb66cea534b532813ec454cf8">gui_internal_populate_route_table()</a>, <a class="el" href="gui__internal__priv_8h.html#aab8e3696d93fc4b25eb6df4d841f6e4c">gui_internal_select_waypoint()</a>, <a class="el" href="map_8h.html#af44c00a5c0938889e420cd8c5b87a92a">map_convert_string()</a>, <a class="el" href="binding__dbus_8c.html#a048f93e084c152c01ee24892e9c285b8">request_navit_route_export_geojson()</a>, and <a class="el" href="binding__dbus_8c.html#abfa39940de8d6661f0e696a9a5d4f922">request_navit_route_export_gpx()</a>.</p>

</div>
</div>
<a class="anchor" id="a06f624f20492c8e9e9f3c7eb43b70396"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_destroy </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroys an opened map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>The map to be destroyed </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="structmap.html#a217b9c8299ba6e63c8612e092cc632b8">map::attr_cbl</a>, <a class="el" href="attr_8c.html#a703fe486d07cd5fb556899d3b988f052">attr_list_free()</a>, <a class="el" href="callback_8c.html#aeaefe3bee8fe757346872e563d1358a4">callback_list_destroy()</a>, <a class="el" href="structmap__methods.html#a6da1713d655b62c522dadce548d270f3">map_methods::map_destroy</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, and <a class="el" href="structmap.html#af9de0e4f6b9c614edd2faa4c59b1d587">map::priv</a>.</p>

<p>Referenced by <a class="el" href="bookmarks_8h.html#ab63ebd5d8e670e6dc64a4bff870912dd">bookmarks_destroy()</a>, <a class="el" href="binding__python_8c.html#ad0ff1d802c46a262e16682d606c5d5aa">map_destroy_py()</a>, <a class="el" href="filter_8c.html#ae0fd89b0c1962a5e151f86e7783d8f02">map_filter_destroy()</a>, <a class="el" href="map_8h.html#a9a8864bcc7e1f687fe52c38b36bcad63">map_new()</a>, <a class="el" href="group__navit.html#ga573bc5a9c51fc9167ff9bd75f8b3a7eb">navit_destroy()</a>, <a class="el" href="maptool_8c.html#a3646d2293954d57abc0e33c57494067a">osm_read_input_data()</a>, and <a class="el" href="route_8h.html#ae7d2ff1bc3006c9967b0a4ae3e54fe90">route_destroy()</a>.</p>

</div>
</div>
<a class="anchor" id="af254bddcffd897fa184fc240eebb7edd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_dump </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>map</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>References <a class="el" href="map_8c.html#a8aa5e993e64e51a2d90b3be0251412cc">map_dump_filedesc()</a>.</p>

</div>
</div>
<a class="anchor" id="ae69d4a7761530edd56139460233d26c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_dump_file </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>map</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>file</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>References <a class="el" href="debug_8h.html#aba3c0ccefe6daa8941b173073268729e">dbg</a>, <a class="el" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25a83f9ab2a71d2244b99268510714e94fb">lvl_error</a>, and <a class="el" href="map_8c.html#a8aa5e993e64e51a2d90b3be0251412cc">map_dump_filedesc()</a>.</p>

<p>Referenced by <a class="el" href="binding__python_8c.html#a94a25994e29a16f648ac2e6bb1f8d156">map_dump_file_py()</a>, <a class="el" href="pedestrian_8c.html#a5b5566352cf8c3753bb6884912f6d59c">map_route_occluded_rect_destroy()</a>, and <a class="el" href="pedestrian_8c.html#a166e8567c628f1596df93919adddb2c0">map_route_occluded_rect_new()</a>.</p>

</div>
</div>
<a class="anchor" id="a8aa5e993e64e51a2d90b3be0251412cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_dump_filedesc </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>map</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>out</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>References <a class="el" href="osm_8c.html#a1b6910c37842678ed6084354f57f6260">item</a>, <a class="el" href="item_8c.html#a23108b32c807dc9ae8162eadc6452755">item_dump_filedesc()</a>, <a class="el" href="map_8c.html#afe7311d63f1e8a4a697634cf79329f7d">map_rect_destroy()</a>, <a class="el" href="map_8c.html#ae025c855207536977afd84d39b316e9c">map_rect_get_item()</a>, and <a class="el" href="map_8c.html#a52e6ae5ec3beaec49ce12ce603d7d72a">map_rect_new()</a>.</p>

<p>Referenced by <a class="el" href="map_8h.html#af254bddcffd897fa184fc240eebb7edd">map_dump()</a>, <a class="el" href="map_8h.html#ae69d4a7761530edd56139460233d26c6">map_dump_file()</a>, and <a class="el" href="binding__dbus_8c.html#ad0730970cc19f474d43e4990d37a49e3">request_map_dump()</a>.</p>

</div>
</div>
<a class="anchor" id="aea4bb45171274a8b6bd4de3d33606f35"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> map_get_attr </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>this_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">enum <a class="el" href="attr_8h.html#a9a9ab3c12bda86add06f89976f36f98c">attr_type</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structattr.html">attr</a> *&#160;</td>
          <td class="paramname"><em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structattr__iter.html">attr_iter</a> *&#160;</td>
          <td class="paramname"><em>iter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets an attribute from a map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>The map the attribute should be read from </td></tr>
    <tr><td class="paramname">type</td><td>The type of the attribute to be read </td></tr>
    <tr><td class="paramname">attr</td><td>Pointer to an attrib-structure where the attribute should be written to </td></tr>
    <tr><td class="paramname">iter</td><td>(NOT IMPLEMENTED) Used to iterate through all attributes of a type. Set this to NULL to get the first attribute, set this to an <a class="el" href="structattr__iter.html">attr_iter</a> to get the next attribute </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if the attribute type was found, false if not </dd></dl>

<p>References <a class="el" href="attr_8c.html#adf6574ad1a34ce7251c34d2ea903c076">attr_generic_get_attr()</a>, <a class="el" href="structmap__methods.html#a5caaef1b432cc3cd7bd1fb2cf74e2885">map_methods::map_get_attr</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, <a class="el" href="structattr.html#aebf8c468883c8a41033b97c2ae91003b">attr::num</a>, <a class="el" href="structmap.html#af9de0e4f6b9c614edd2faa4c59b1d587">map::priv</a>, <a class="el" href="garmin__img_8c.html#a8f7b0321b1954f07b747aeb1e311814e">type</a>, <a class="el" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">attr::type</a>, and <a class="el" href="structattr.html#a682d33096ece5ad806426918c15c4b10">attr::u</a>.</p>

<p>Referenced by <a class="el" href="attr_8h.html#a90e7f35e990d0703bd01be1e95b2edc9">attr_to_text_ext()</a>, <a class="el" href="classBackend.html#a6ac6e84ae8630b54403b78ad48acca19">Backend::get_maps()</a>, <a class="el" href="gui__gtk__window_8c.html#abd91c8009c9bd538070917277ca170b2">gui_gtk_maps_init()</a>, <a class="el" href="gui__internal__priv_8h.html#ae8c488f3233d54f845d063363cae7f1c">gui_internal_button_map_attr_new()</a>, <a class="el" href="gui__internal__command_8c.html#a5da19bf1ada68c6435d7b8e1478ca1ad">gui_internal_cmd2_route_height_profile()</a>, <a class="el" href="gui__internal__command_8c.html#a73cff640d762b6383abd5af437342f7e">gui_internal_cmd2_setting_maps()</a>, <a class="el" href="mapset_8h.html#adb098564156843a504fe8408c7051dd1">mapset_get_map_by_name()</a>, <a class="el" href="mapset_8h.html#a7514e385a1a1ad3a2d1c40b4fc7ccfd7">mapset_next()</a>, <a class="el" href="mapset_8h.html#aa44f7331590fa3b6f5af4e58283c6131">mapset_search_get_item()</a>, <a class="el" href="group__navit.html#gacd0ef4b110b76f6b7770312752862e49">navit_map_progress()</a>, <a class="el" href="osd__core_8c.html#a4f5922c0e7f4e1e1e7aef609a1c77553">osd_route_guard_init()</a>, <a class="el" href="osd__core_8c.html#a3514a42388b0ba41998fd818ebb5f955">osd_speed_cam_draw()</a>, <a class="el" href="popup_8c.html#a210ae1cb75af3dc657ea19dcb06f7541">popup_show_item()</a>, and <a class="el" href="binding__dbus_8c.html#a954e557d516b6ccd18f468b7260f78fc">request_map_get_attr()</a>.</p>

</div>
</div>
<a class="anchor" id="a9a8864bcc7e1f687fe52c38b36bcad63"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structmap.html">map</a>* map_new </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structattr.html">attr</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structattr.html">attr</a> **&#160;</td>
          <td class="paramname"><em>attrs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Opens a new map. </p>
<p>This function opens a new map based on the attributes passed. This function takes the attribute "attr_type" to determine which type of map to open and passes all attributes to the map plugin's function that was specified in the plugin_register_new_map_type()-call.</p>
<p>Note that every plugin should accept an attribute of type "attr_data" to be passed with the filename of the map to be opened as value.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">attrs</td><td>Attributes specifying which map to open, see description </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The opened map or NULL on failure </dd></dl>

<p>References <a class="el" href="structmap.html#a217b9c8299ba6e63c8612e092cc632b8">map::attr_cbl</a>, <a class="el" href="attr_8c.html#a78c8acc94b747237631b2e68f123c7fa">attr_list_dup()</a>, <a class="el" href="attr_8c.html#ac035ca982c873e6e15f3edebcb6b62fd">attr_search()</a>, <a class="el" href="structattr.html#a464cf684a789545b3ad0242e4e704701">attr::attrs</a>, <a class="el" href="callback_8c.html#affc2e9963cff9676464c343b7ce2e1e8">callback_list_new()</a>, <a class="el" href="main_8c.html#a0bb9aea6e64415d105ad710731075fa4">cbl</a>, <a class="el" href="debug_8h.html#aba3c0ccefe6daa8941b173073268729e">dbg</a>, <a class="el" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25a83f9ab2a71d2244b99268510714e94fb">lvl_error</a>, <a class="el" href="map_8c.html#a06f624f20492c8e9e9f3c7eb43b70396">map_destroy()</a>, <a class="el" href="map_8c.html#a72847bda2999f94a238bde22e8072d2d">map_func</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, <a class="el" href="xmlconfig_8c.html#acc1bc70fa25d7d81b1fa01fe6ef3a2f6">navit_object_ref()</a>, <a class="el" href="structmap.html#af9de0e4f6b9c614edd2faa4c59b1d587">map::priv</a>, <a class="el" href="structattr.html#a2a2a2da11501e5c4b5464938c91b87e9">attr::str</a>, <a class="el" href="garmin__img_8c.html#a8f7b0321b1954f07b747aeb1e311814e">type</a>, and <a class="el" href="structattr.html#a682d33096ece5ad806426918c15c4b10">attr::u</a>.</p>

<p>Referenced by <a class="el" href="bookmarks_8h.html#acf977d12a3755eb22691c8ae29aa5541">bookmarks_new()</a>, <a class="el" href="gui__internal_8c.html#a733f76eeb35c9fca6f32227ed43e9a9c">get_search_results_map()</a>, <a class="el" href="android_8c.html#a03ff8a0fdf2c7031313356dedcd1d7bb">Java_org_navitproject_navit_NavitGraphics_CallbackMessageChannel()</a>, <a class="el" href="filter_8c.html#a3ff1c010c91b58879c3f8f8cf6a69f92">map_filter_new()</a>, <a class="el" href="binding__python_8c.html#a85ea82c59a9189f7705e4915ce2064ad">map_new_py()</a>, <a class="el" href="maps_8c.html#aac1b1796640454998c50c59c45350a87">maps_new()</a>, <a class="el" href="maptype_8h.html#a3abe7447b5694ebde4a1967ca1e94c77">maptype_register()</a>, <a class="el" href="navigation_8h.html#a0a8a5f4e94a4c775901bfeccc4801bd6">navigation_get_map()</a>, <a class="el" href="maptool_8c.html#ade40f66edac4fc4c13a21785ddbf7d8c">parse_option()</a>, <a class="el" href="pedestrian_8c.html#a8da9aad3ef0a3ecc8615987664fbd1f3">pedestrian_navit_init()</a>, <a class="el" href="group__navit.html#ga2148f5b4be7af659549d7d0d0fb3eaa4">read_former_destinations_from_file()</a>, <a class="el" href="route_8c.html#a722a31bfef2b1f9d4eb77b708628d528">route_get_map_helper()</a>, and <a class="el" href="track_8h.html#a21a72ba8880259ae882d46cd3f8ecdf3">tracking_get_map()</a>.</p>

</div>
</div>
<a class="anchor" id="a8337c095972c7c8f69679577668d6b5b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> map_priv_is </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>map</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmap__priv.html">map_priv</a> *&#160;</td>
          <td class="paramname"><em>priv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if a pointer points to the private data of a map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">map</td><td>The map whose private data should be checked. </td></tr>
    <tr><td class="paramname">priv</td><td>The private data that should be checked. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if priv is the private data of map </dd></dl>

<p>References <a class="el" href="structmap.html#af9de0e4f6b9c614edd2faa4c59b1d587">map::priv</a>.</p>

<p>Referenced by <a class="el" href="binfile_8c.html#afd7ce2cd5527e9cdf54e274cfecb3cb5">binmap_search_new()</a>, and <a class="el" href="map_2mg_2map_8c.html#aec75c4d51d429fd46aff33236f7a8b5a">map_search_setup()</a>.</p>

</div>
</div>
<a class="anchor" id="a956c6e8398f832e31fe90634fa982dbf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a> map_projection </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>this_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the projection of a map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>The map to return the projection of </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The projection of the map </dd></dl>

<p>References <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, and <a class="el" href="structmap__methods.html#a22a82fd1148cb3a43d06178dfc8792e4">map_methods::pro</a>.</p>

<p>Referenced by <a class="el" href="bookmarks_8h.html#a53b8bfb4977976390e2e287778f932b8">bookmarks_append_destinations()</a>, <a class="el" href="bookmarks_8h.html#afb07f8439ea196536ab003e324d2a828">bookmarks_get_projection()</a>, <a class="el" href="graphics_8c.html#aaf0787db32faf380b8853fcd3b635252">do_draw()</a>, <a class="el" href="classBackend.html#a139da3a81c132887ce12937faaf8d864">Backend::get_pois()</a>, <a class="el" href="classNGQPoint.html#ae78867c696a50e9f08c988283c04e2e8">NGQPoint::getPOI()</a>, <a class="el" href="gui__internal__command_8c.html#a63f3c8ad13a024619363d489ab4eab19">gui_internal_cmd_formerdests()</a>, <a class="el" href="gui__internal__poi_8h.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, <a class="el" href="gui__internal__priv_8h.html#a256ca02bb66cea534b532813ec454cf8">gui_internal_populate_route_table()</a>, <a class="el" href="gui__internal__priv_8h.html#aab8e3696d93fc4b25eb6df4d841f6e4c">gui_internal_select_waypoint()</a>, <a class="el" href="item_8h.html#a088682cd8951907090cbf68b4c9e0f83">item_coord_get_pro()</a>, <a class="el" href="gui__gtk__poi_8c.html#a139bd4131511ebd1499b9c0ccc454492">model_poi()</a>, <a class="el" href="navigation_8c.html#a48b34454ac33e8860f9d78a1d5159696">navigation_analyze_roundabout()</a>, <a class="el" href="group__navit.html#gaf1d89e171e4a7e11f279d54ed4c89725">navit_add_former_destinations_from_file()</a>, <a class="el" href="route_8c.html#a1ffe6ed74a9a862b97a9258553399640">route_find_nearest_street()</a>, <a class="el" href="route_8c.html#abbb09e728912f41e6a132985d6ad4bf0">route_path_new()</a>, <a class="el" href="route_8c.html#a8b102be562307327d4727c8b57898bd5">route_process_street_graph()</a>, <a class="el" href="route_8c.html#a4b94fbf645a46645f86c68872bc3d32c">route_projection()</a>, <a class="el" href="search__houseno__interpol_8h.html#a7486e0f36eef36924a138a07fa2946b0">search_house_number_coordinate()</a>, <a class="el" href="search_8c.html#abfe0d4629e879738bb807d8c664be1e2">search_list_street_new()</a>, <a class="el" href="search_8c.html#ad38ca441df85ebe3c070552204f5609a">search_list_town_new()</a>, <a class="el" href="track_8c.html#a96845cb46a48a91280e9eba32af32b9d">tracking_doupdate_lines()</a>, and <a class="el" href="track_8c.html#ad3fc18534a5877d6a0499e8722dab4ca">tracking_map_item_coord_get()</a>.</p>

</div>
</div>
<a class="anchor" id="a62e56af95eabfab1632e6888676a8127"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structitem.html">item</a>* map_rect_create_item </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__rect.html">map_rect</a> *&#160;</td>
          <td class="paramname"><em>mr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">enum <a class="el" href="item_8h.html#a2679318a14061852e50df3c6e4e42f62">item_type</a>&#160;</td>
          <td class="paramname"><em>type_</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>References <a class="el" href="structmap__rect.html#ac5e820290b88392c5ef6f75807e24b73">map_rect::m</a>, <a class="el" href="structmap__methods.html#ab4658d88b9347a00a723b84a4735e545">map_methods::map_rect_create_item</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, and <a class="el" href="structmap__rect.html#aaee66563c8a5a1fae043efa4f726dfd4">map_rect::priv</a>.</p>

<p>Referenced by <a class="el" href="gui__internal_8c.html#aae575f81dd560b1ad110926a359d883a">gui_internal_prepare_search_results_map()</a>, and <a class="el" href="group__navit.html#gad8cddea4de665947ec2b957741e9a648">navit_cmd_map_add_curr_pos()</a>.</p>

</div>
</div>
<a class="anchor" id="afe7311d63f1e8a4a697634cf79329f7d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_rect_destroy </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__rect.html">map_rect</a> *&#160;</td>
          <td class="paramname"><em>mr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroys a map rect. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mr</td><td>The map rect to be destroyed </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="structmap__rect.html#ac5e820290b88392c5ef6f75807e24b73">map_rect::m</a>, <a class="el" href="structmap__methods.html#ad5cc635991170b1689db2ed6ae2e9d77">map_methods::map_rect_destroy</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, and <a class="el" href="structmap__rect.html#aaee66563c8a5a1fae043efa4f726dfd4">map_rect::priv</a>.</p>

<p>Referenced by <a class="el" href="classNGQPoint.html#a05d5c21ee472eb8e7ee1f89bd8d0dbd2">NGQPoint::_coordName()</a>, <a class="el" href="bookmarks_8c.html#a4df1e0fa7a8791633c576a416875b075">bookmarks_clear_hash()</a>, <a class="el" href="bookmarks_8c.html#a40184c0c0859c5f9f4b9f198e4fce87e">bookmarks_load_hash()</a>, <a class="el" href="bookmarks_8c.html#a80925b54113b0a46a563c787335fcb18">bookmarks_store_bookmarks_to_file()</a>, <a class="el" href="graphics_8c.html#aaf0787db32faf380b8853fcd3b635252">do_draw()</a>, <a class="el" href="route_8c.html#ae6d15cb3878ceebace2fa923ea9257c3">get_item_seg_coords()</a>, <a class="el" href="classBackend.html#a139da3a81c132887ce12937faaf8d864">Backend::get_pois()</a>, <a class="el" href="classNGQPoint.html#a8d53afda2ecea29a7fdacd13074145c7">NGQPoint::getInformation()</a>, <a class="el" href="graphics_8c.html#adb33069ce4c48cd35040977afb634426">graphics_process_selection_item()</a>, <a class="el" href="gui__gtk__window_8c.html#a44b7ce8a6c83d02a1fa0b35a2879ad8d">gui_gtk_destinations_update()</a>, <a class="el" href="gui__internal__command_8c.html#a5da19bf1ada68c6435d7b8e1478ca1ad">gui_internal_cmd2_route_height_profile()</a>, <a class="el" href="gui__internal_8c.html#a9720cd19aab6aed4353e60f36fce8c61">gui_internal_cmd_delete_waypoint()</a>, <a class="el" href="gui__internal__command_8c.html#a63f3c8ad13a024619363d489ab4eab19">gui_internal_cmd_formerdests()</a>, <a class="el" href="gui__internal_8c.html#ac24f3e03158f9a19c66b3a468074111a">gui_internal_cmd_map_download_do()</a>, <a class="el" href="gui__internal__poi_8h.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, <a class="el" href="gui__internal__priv_8h.html#a182f39c0a04cd59ff393a6dc66062f55">gui_internal_cmd_position_do()</a>, <a class="el" href="gui__internal_8c.html#aabc381a6a01918ee25f0defb9d668040">gui_internal_cmd_view_attribute_details()</a>, <a class="el" href="gui__internal_8c.html#a825fdba772c1ebb6c22801a46b9a772a">gui_internal_cmd_view_attributes()</a>, <a class="el" href="gui__internal_8c.html#ad82ad0f8ba8a81232532bbaf0f20c9a6">gui_internal_cmd_view_in_browser()</a>, <a class="el" href="gui__internal_8c.html#a89fda47eb3664b3a0194006059432f87">gui_internal_dbus_signal()</a>, <a class="el" href="gui__internal__priv_8h.html#a256ca02bb66cea534b532813ec454cf8">gui_internal_populate_route_table()</a>, <a class="el" href="gui__internal_8c.html#aae575f81dd560b1ad110926a359d883a">gui_internal_prepare_search_results_map()</a>, <a class="el" href="gui__internal__priv_8h.html#aab8e3696d93fc4b25eb6df4d841f6e4c">gui_internal_select_waypoint()</a>, <a class="el" href="gui__qml_8cpp.html#a47a0cb73fd6692e3aa1224134ff01bf8">gui_qml_dbus_signal()</a>, <a class="el" href="map_8h.html#a8aa5e993e64e51a2d90b3be0251412cc">map_dump_filedesc()</a>, <a class="el" href="filter_8c.html#a6c80ac294dfb106ef6fbf59c9fe70aaf">map_filter_rect_destroy()</a>, <a class="el" href="binding__python_8c.html#a382dda83bc2f3eb2d9f5d594d6830cbb">map_rect_destroy_py()</a>, <a class="el" href="pedestrian_8c.html#a3993e634ae947fd2a161d3416574538c">map_route_occluded_bbox()</a>, <a class="el" href="pedestrian_8c.html#ab7249225385231913db5067ee0f11fb0">map_route_occluded_get_buildings()</a>, <a class="el" href="pedestrian_8c.html#a5b5566352cf8c3753bb6884912f6d59c">map_route_occluded_rect_destroy()</a>, <a class="el" href="gui__gtk__poi_8c.html#a139bd4131511ebd1499b9c0ccc454492">model_poi()</a>, <a class="el" href="navigation_8h.html#af52411918a519cbfb8ee3dd4be14b178">navigation_get_attr()</a>, <a class="el" href="navigation_8c.html#a59d000245202df0dfc71c6011e8b853e">navigation_itm_new()</a>, <a class="el" href="navigation_8c.html#a98b8780b4749cf1d9404dcb889ee2a3b">navigation_itm_ways_update()</a>, <a class="el" href="navigation_8c.html#a104e25a4dbd9108f23f238f91929a187">navigation_update_done()</a>, <a class="el" href="navigation_8c.html#a69082bd5973ce2c97af608af337446ed">navigation_way_get_max_delta()</a>, <a class="el" href="navigation_8c.html#a5eb317dac08c622f02b8181610750064">navigation_way_init()</a>, <a class="el" href="group__navit.html#gaf1d89e171e4a7e11f279d54ed4c89725">navit_add_former_destinations_from_file()</a>, <a class="el" href="group__navit.html#gad8cddea4de665947ec2b957741e9a648">navit_cmd_map_add_curr_pos()</a>, <a class="el" href="group__navit.html#ga4388fd187be0d0eb8641684023594f53">navit_cmd_map_item_set_attr()</a>, <a class="el" href="group__navit.html#gabba2aaa70e0a245d0bf4d84d0884e374">navit_speak()</a>, <a class="el" href="group__navit.html#ga9840d0a2ac5a308e1249fdda78e87dc0">navit_window_roadbook_update()</a>, <a class="el" href="group__navit.html#ga38e803366dc39957f5dfcfbbcfd2b853">navit_zoom_to_route()</a>, <a class="el" href="osd__core_8c.html#a0c9ad7b4a3685122f1d9c384df3b9b1a">osd_nav_next_turn_draw()</a>, <a class="el" href="osd__core_8c.html#a3514a42388b0ba41998fd818ebb5f955">osd_speed_cam_draw()</a>, <a class="el" href="osd__core_8c.html#ad1b3aad9b6f3d02df61bea4c5759ebb4">osd_text_draw()</a>, <a class="el" href="pedestrian_8c.html#a6252c53cced4156ca778f7c704946da9">pedestrian_draw_arrows()</a>, <a class="el" href="maptool_2misc_8c.html#af614abb9152680903a876b5f8cc7480a">phase1_map()</a>, <a class="el" href="popup_8c.html#ad3f43c5450a12a4c15090a4c66689ebf">popup_item_dump()</a>, <a class="el" href="popup_8c.html#a210ae1cb75af3dc657ea19dcb06f7541">popup_show_item()</a>, <a class="el" href="bookmarks_8c.html#a7536c963f67145457db8da7a789f6087">read_former_destination_map_as_list()</a>, <a class="el" href="route_8c.html#a1ffe6ed74a9a862b97a9258553399640">route_find_nearest_street()</a>, <a class="el" href="route_8h.html#aea343fbd29c37a4c09891694d9117b57">route_get_destination_description()</a>, <a class="el" href="route_8c.html#ac3e38c75ba70e570de53835a1ec5dc05">route_graph_build_done()</a>, <a class="el" href="route_8c.html#ac370bd70c11c34ed559a99dc00e79260">route_graph_build_next_map()</a>, <a class="el" href="gui__gtk__statusbar_8c.html#a798ad4510fcf2ee073cf71d5b859a549">statusbar_route_update()</a>, <a class="el" href="track_8c.html#a96845cb46a48a91280e9eba32af32b9d">tracking_doupdate_lines()</a>, <a class="el" href="track_8h.html#a947477c7269750bf7d88207ad972e8e5">tracking_get_attr()</a>, and <a class="el" href="vehicle__demo_8c.html#a4194f012c439533a7dd3c63fd14991bc">vehicle_demo_timer()</a>.</p>

</div>
</div>
<a class="anchor" id="ae025c855207536977afd84d39b316e9c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structitem.html">item</a>* map_rect_get_item </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__rect.html">map_rect</a> *&#160;</td>
          <td class="paramname"><em>mr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the next item from a map rect. </p>
<p>Returns an item from a map rect and advances the "item pointer" one step further, so that at the next call the next item is returned. Returns NULL if there are no more items.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mr</td><td>The map rect to return an item from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An item from the map rect </dd></dl>

<p>References <a class="el" href="debug_8h.html#aa1ea27a449d096a072c270f9276a8f9f">dbg_assert</a>, <a class="el" href="structmap__rect.html#ac5e820290b88392c5ef6f75807e24b73">map_rect::m</a>, <a class="el" href="structitem.html#a9d90a195a3654c3b1e872ad92ae74369">item::map</a>, <a class="el" href="structmap__methods.html#aa494c93ad3cde4ad7c0a9f9e1f38240c">map_methods::map_rect_get_item</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, and <a class="el" href="structmap__rect.html#aaee66563c8a5a1fae043efa4f726dfd4">map_rect::priv</a>.</p>

<p>Referenced by <a class="el" href="classNGQPoint.html#a05d5c21ee472eb8e7ee1f89bd8d0dbd2">NGQPoint::_coordName()</a>, <a class="el" href="bookmarks_8c.html#a40184c0c0859c5f9f4b9f198e4fce87e">bookmarks_load_hash()</a>, <a class="el" href="graphics_8c.html#aaf0787db32faf380b8853fcd3b635252">do_draw()</a>, <a class="el" href="classBackend.html#a139da3a81c132887ce12937faaf8d864">Backend::get_pois()</a>, <a class="el" href="classNGQPoint.html#ae78867c696a50e9f08c988283c04e2e8">NGQPoint::getPOI()</a>, <a class="el" href="gui__gtk__window_8c.html#adc5e6f1f0f8eca9af7521bb5d3328c28">gui_gtk_bookmarks_update()</a>, <a class="el" href="gui__gtk__window_8c.html#a44b7ce8a6c83d02a1fa0b35a2879ad8d">gui_gtk_destinations_update()</a>, <a class="el" href="gui__internal__command_8c.html#a5da19bf1ada68c6435d7b8e1478ca1ad">gui_internal_cmd2_route_height_profile()</a>, <a class="el" href="gui__internal_8c.html#a9720cd19aab6aed4353e60f36fce8c61">gui_internal_cmd_delete_waypoint()</a>, <a class="el" href="gui__internal__command_8c.html#a63f3c8ad13a024619363d489ab4eab19">gui_internal_cmd_formerdests()</a>, <a class="el" href="gui__internal_8c.html#ac24f3e03158f9a19c66b3a468074111a">gui_internal_cmd_map_download_do()</a>, <a class="el" href="gui__internal__poi_8h.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, <a class="el" href="gui__internal__priv_8h.html#a256ca02bb66cea534b532813ec454cf8">gui_internal_populate_route_table()</a>, <a class="el" href="gui__internal_8c.html#aae575f81dd560b1ad110926a359d883a">gui_internal_prepare_search_results_map()</a>, <a class="el" href="gui__internal__priv_8h.html#aab8e3696d93fc4b25eb6df4d841f6e4c">gui_internal_select_waypoint()</a>, <a class="el" href="map_8h.html#a8aa5e993e64e51a2d90b3be0251412cc">map_dump_filedesc()</a>, <a class="el" href="filter_8c.html#ab052486e654655fe7efbd9b806a01d52">map_filter_rect_get_item()</a>, <a class="el" href="pedestrian_8c.html#a3993e634ae947fd2a161d3416574538c">map_route_occluded_bbox()</a>, <a class="el" href="pedestrian_8c.html#ab7249225385231913db5067ee0f11fb0">map_route_occluded_get_buildings()</a>, <a class="el" href="pedestrian_8c.html#ace723fd53676dd3e8f5b3cd40da1b0a7">map_route_occluded_get_item()</a>, <a class="el" href="gui__gtk__poi_8c.html#a139bd4131511ebd1499b9c0ccc454492">model_poi()</a>, <a class="el" href="navigation_8h.html#af52411918a519cbfb8ee3dd4be14b178">navigation_get_attr()</a>, <a class="el" href="navigation_8c.html#a59d000245202df0dfc71c6011e8b853e">navigation_itm_new()</a>, <a class="el" href="navigation_8c.html#a98b8780b4749cf1d9404dcb889ee2a3b">navigation_itm_ways_update()</a>, <a class="el" href="navigation_8c.html#a47dcc399d74c0fc3a4f3c47d6992e5e5">navigation_update_idle()</a>, <a class="el" href="group__navit.html#gaf1d89e171e4a7e11f279d54ed4c89725">navit_add_former_destinations_from_file()</a>, <a class="el" href="group__navit.html#gabba2aaa70e0a245d0bf4d84d0884e374">navit_speak()</a>, <a class="el" href="group__navit.html#ga9840d0a2ac5a308e1249fdda78e87dc0">navit_window_roadbook_update()</a>, <a class="el" href="group__navit.html#ga38e803366dc39957f5dfcfbbcfd2b853">navit_zoom_to_route()</a>, <a class="el" href="osd__core_8c.html#a0c9ad7b4a3685122f1d9c384df3b9b1a">osd_nav_next_turn_draw()</a>, <a class="el" href="osd__core_8c.html#a4f5922c0e7f4e1e1e7aef609a1c77553">osd_route_guard_init()</a>, <a class="el" href="osd__core_8c.html#a3514a42388b0ba41998fd818ebb5f955">osd_speed_cam_draw()</a>, <a class="el" href="osd__core_8c.html#ad1b3aad9b6f3d02df61bea4c5759ebb4">osd_text_draw()</a>, <a class="el" href="pedestrian_8c.html#a6252c53cced4156ca778f7c704946da9">pedestrian_draw_arrows()</a>, <a class="el" href="maptool_2misc_8c.html#af614abb9152680903a876b5f8cc7480a">phase1_map()</a>, <a class="el" href="bookmarks_8c.html#a7536c963f67145457db8da7a789f6087">read_former_destination_map_as_list()</a>, <a class="el" href="binding__dbus_8c.html#a048f93e084c152c01ee24892e9c285b8">request_navit_route_export_geojson()</a>, <a class="el" href="binding__dbus_8c.html#abfa39940de8d6661f0e696a9a5d4f922">request_navit_route_export_gpx()</a>, <a class="el" href="route_8c.html#a1ffe6ed74a9a862b97a9258553399640">route_find_nearest_street()</a>, <a class="el" href="route_8c.html#af4ad986c4d197cffe6d7a0e1e3211463">route_graph_build_idle()</a>, <a class="el" href="gui__gtk__statusbar_8c.html#a798ad4510fcf2ee073cf71d5b859a549">statusbar_route_update()</a>, <a class="el" href="track_8c.html#a96845cb46a48a91280e9eba32af32b9d">tracking_doupdate_lines()</a>, and <a class="el" href="vehicle__demo_8c.html#a4194f012c439533a7dd3c63fd14991bc">vehicle_demo_timer()</a>.</p>

</div>
</div>
<a class="anchor" id="a9e27d0888db14bf9b88727ead943eaf6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structitem.html">item</a>* map_rect_get_item_byid </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__rect.html">map_rect</a> *&#160;</td>
          <td class="paramname"><em>mr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td>
          <td class="paramname"><em>id_hi</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td>
          <td class="paramname"><em>id_lo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the item specified by the ID. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mr</td><td>The map rect to search for the item </td></tr>
    <tr><td class="paramname">id_hi</td><td>High part of the ID to be found </td></tr>
    <tr><td class="paramname">id_lo</td><td>Low part of the ID to be found </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The item with the specified ID or NULL if not found </dd></dl>

<p>References <a class="el" href="debug_8h.html#aa1ea27a449d096a072c270f9276a8f9f">dbg_assert</a>, <a class="el" href="structmap__rect.html#ac5e820290b88392c5ef6f75807e24b73">map_rect::m</a>, <a class="el" href="structitem.html#a9d90a195a3654c3b1e872ad92ae74369">item::map</a>, <a class="el" href="structmap__methods.html#a23213fee74b27726587dbedb19ee54d6">map_methods::map_rect_get_item_byid</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, and <a class="el" href="structmap__rect.html#aaee66563c8a5a1fae043efa4f726dfd4">map_rect::priv</a>.</p>

<p>Referenced by <a class="el" href="bookmarks_8h.html#a7f4c145dbfbc70c6a17c6a5214d38131">bookmarks_get_item()</a>, <a class="el" href="qt5__qml_2proxy_8h.html#acb1b7273c932f27de9355f80280892b9">get_icon()</a>, <a class="el" href="route_8c.html#ae6d15cb3878ceebace2fa923ea9257c3">get_item_seg_coords()</a>, <a class="el" href="classNGQPoint.html#a8d53afda2ecea29a7fdacd13074145c7">NGQPoint::getInformation()</a>, <a class="el" href="graphics_8c.html#adb33069ce4c48cd35040977afb634426">graphics_process_selection_item()</a>, <a class="el" href="gui__internal__priv_8h.html#a182f39c0a04cd59ff393a6dc66062f55">gui_internal_cmd_position_do()</a>, <a class="el" href="gui__internal_8c.html#aabc381a6a01918ee25f0defb9d668040">gui_internal_cmd_view_attribute_details()</a>, <a class="el" href="gui__internal_8c.html#a825fdba772c1ebb6c22801a46b9a772a">gui_internal_cmd_view_attributes()</a>, <a class="el" href="gui__internal_8c.html#ad82ad0f8ba8a81232532bbaf0f20c9a6">gui_internal_cmd_view_in_browser()</a>, <a class="el" href="gui__internal_8c.html#a89fda47eb3664b3a0194006059432f87">gui_internal_dbus_signal()</a>, <a class="el" href="gui__internal__poi_8c.html#aa66417a00f992898fb9685cd73f44ccb">gui_internal_poi_icon()</a>, <a class="el" href="gui__qml_8cpp.html#a47a0cb73fd6692e3aa1224134ff01bf8">gui_qml_dbus_signal()</a>, <a class="el" href="filter_8c.html#a610c6f5886ee86ab96451e6cbc4f38f4">map_filter_rect_get_item_byid()</a>, <a class="el" href="navigation_8c.html#a59d000245202df0dfc71c6011e8b853e">navigation_itm_new()</a>, <a class="el" href="navigation_8c.html#a69082bd5973ce2c97af608af337446ed">navigation_way_get_max_delta()</a>, <a class="el" href="navigation_8c.html#a5eb317dac08c622f02b8181610750064">navigation_way_init()</a>, <a class="el" href="group__navit.html#ga4388fd187be0d0eb8641684023594f53">navit_cmd_map_item_set_attr()</a>, <a class="el" href="popup_8c.html#ad3f43c5450a12a4c15090a4c66689ebf">popup_item_dump()</a>, <a class="el" href="popup_8c.html#a210ae1cb75af3dc657ea19dcb06f7541">popup_show_item()</a>, <a class="el" href="popup_8c.html#ad0252613bfa45161e30eeec2f53f1737">popup_traffic_distortion()</a>, <a class="el" href="route_8h.html#aea343fbd29c37a4c09891694d9117b57">route_get_destination_description()</a>, and <a class="el" href="track_8h.html#a947477c7269750bf7d88207ad972e8e5">tracking_get_attr()</a>.</p>

</div>
</div>
<a class="anchor" id="a52e6ae5ec3beaec49ce12ce603d7d72a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structmap__rect.html">map_rect</a>* map_rect_new </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmap__selection.html">map_selection</a> *&#160;</td>
          <td class="paramname"><em>sel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new map rect. </p>
<p>This creates a new map rect, which can be used to retrieve items from a map. If sel is a linked-list of selections, all of them will be used. If you pass NULL as sel, this means "get me the whole map".</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>The map to build the rect on </td></tr>
    <tr><td class="paramname">sel</td><td>Map selection to choose the rectangle - may be NULL, see description </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new map rect </dd></dl>

<p>References <a class="el" href="structmap__rect.html#ac5e820290b88392c5ef6f75807e24b73">map_rect::m</a>, <a class="el" href="structmap__methods.html#a61d20b95585c4a9539be0331363fe892">map_methods::map_rect_new</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, <a class="el" href="structmap.html#af9de0e4f6b9c614edd2faa4c59b1d587">map::priv</a>, and <a class="el" href="structmap__rect.html#aaee66563c8a5a1fae043efa4f726dfd4">map_rect::priv</a>.</p>

<p>Referenced by <a class="el" href="classNGQPoint.html#a05d5c21ee472eb8e7ee1f89bd8d0dbd2">NGQPoint::_coordName()</a>, <a class="el" href="bookmarks_8c.html#a40184c0c0859c5f9f4b9f198e4fce87e">bookmarks_load_hash()</a>, <a class="el" href="graphics_8c.html#aaf0787db32faf380b8853fcd3b635252">do_draw()</a>, <a class="el" href="qt5__qml_2proxy_8h.html#acb1b7273c932f27de9355f80280892b9">get_icon()</a>, <a class="el" href="route_8c.html#ae6d15cb3878ceebace2fa923ea9257c3">get_item_seg_coords()</a>, <a class="el" href="classBackend.html#a139da3a81c132887ce12937faaf8d864">Backend::get_pois()</a>, <a class="el" href="classNGQPoint.html#a8d53afda2ecea29a7fdacd13074145c7">NGQPoint::getInformation()</a>, <a class="el" href="classNGQPoint.html#ae78867c696a50e9f08c988283c04e2e8">NGQPoint::getPOI()</a>, <a class="el" href="graphics_8c.html#adb33069ce4c48cd35040977afb634426">graphics_process_selection_item()</a>, <a class="el" href="gui__gtk__window_8c.html#adc5e6f1f0f8eca9af7521bb5d3328c28">gui_gtk_bookmarks_update()</a>, <a class="el" href="gui__gtk__window_8c.html#a44b7ce8a6c83d02a1fa0b35a2879ad8d">gui_gtk_destinations_update()</a>, <a class="el" href="gui__internal__command_8c.html#a5da19bf1ada68c6435d7b8e1478ca1ad">gui_internal_cmd2_route_height_profile()</a>, <a class="el" href="gui__internal_8c.html#a9720cd19aab6aed4353e60f36fce8c61">gui_internal_cmd_delete_waypoint()</a>, <a class="el" href="gui__internal__command_8c.html#a63f3c8ad13a024619363d489ab4eab19">gui_internal_cmd_formerdests()</a>, <a class="el" href="gui__internal_8c.html#ac24f3e03158f9a19c66b3a468074111a">gui_internal_cmd_map_download_do()</a>, <a class="el" href="gui__internal__poi_8h.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, <a class="el" href="gui__internal__priv_8h.html#a182f39c0a04cd59ff393a6dc66062f55">gui_internal_cmd_position_do()</a>, <a class="el" href="gui__internal_8c.html#aabc381a6a01918ee25f0defb9d668040">gui_internal_cmd_view_attribute_details()</a>, <a class="el" href="gui__internal_8c.html#a825fdba772c1ebb6c22801a46b9a772a">gui_internal_cmd_view_attributes()</a>, <a class="el" href="gui__internal_8c.html#ad82ad0f8ba8a81232532bbaf0f20c9a6">gui_internal_cmd_view_in_browser()</a>, <a class="el" href="gui__internal_8c.html#a89fda47eb3664b3a0194006059432f87">gui_internal_dbus_signal()</a>, <a class="el" href="gui__internal__poi_8c.html#aa66417a00f992898fb9685cd73f44ccb">gui_internal_poi_icon()</a>, <a class="el" href="gui__internal__priv_8h.html#a256ca02bb66cea534b532813ec454cf8">gui_internal_populate_route_table()</a>, <a class="el" href="gui__internal_8c.html#aae575f81dd560b1ad110926a359d883a">gui_internal_prepare_search_results_map()</a>, <a class="el" href="gui__internal__priv_8h.html#aab8e3696d93fc4b25eb6df4d841f6e4c">gui_internal_select_waypoint()</a>, <a class="el" href="gui__qml_8cpp.html#a47a0cb73fd6692e3aa1224134ff01bf8">gui_qml_dbus_signal()</a>, <a class="el" href="map_8h.html#a8aa5e993e64e51a2d90b3be0251412cc">map_dump_filedesc()</a>, <a class="el" href="filter_8c.html#a9badc6aac041efcc1e10fdba7322516b">map_filter_rect_new()</a>, <a class="el" href="binding__python_8c.html#ab90b7a10fcdc599835fc2a63e8304dcf">map_rect_new_py()</a>, <a class="el" href="pedestrian_8c.html#a3993e634ae947fd2a161d3416574538c">map_route_occluded_bbox()</a>, <a class="el" href="pedestrian_8c.html#ab7249225385231913db5067ee0f11fb0">map_route_occluded_get_buildings()</a>, <a class="el" href="pedestrian_8c.html#a166e8567c628f1596df93919adddb2c0">map_route_occluded_rect_new()</a>, <a class="el" href="gui__gtk__poi_8c.html#a139bd4131511ebd1499b9c0ccc454492">model_poi()</a>, <a class="el" href="navigation_8h.html#af52411918a519cbfb8ee3dd4be14b178">navigation_get_attr()</a>, <a class="el" href="navigation_8c.html#a59d000245202df0dfc71c6011e8b853e">navigation_itm_new()</a>, <a class="el" href="navigation_8c.html#a98b8780b4749cf1d9404dcb889ee2a3b">navigation_itm_ways_update()</a>, <a class="el" href="navigation_8c.html#aeea262b0184f333410f997db5e7507c8">navigation_update()</a>, <a class="el" href="navigation_8c.html#a69082bd5973ce2c97af608af337446ed">navigation_way_get_max_delta()</a>, <a class="el" href="navigation_8c.html#a5eb317dac08c622f02b8181610750064">navigation_way_init()</a>, <a class="el" href="group__navit.html#gaf1d89e171e4a7e11f279d54ed4c89725">navit_add_former_destinations_from_file()</a>, <a class="el" href="group__navit.html#gad8cddea4de665947ec2b957741e9a648">navit_cmd_map_add_curr_pos()</a>, <a class="el" href="group__navit.html#ga4388fd187be0d0eb8641684023594f53">navit_cmd_map_item_set_attr()</a>, <a class="el" href="group__navit.html#gabba2aaa70e0a245d0bf4d84d0884e374">navit_speak()</a>, <a class="el" href="group__navit.html#ga9840d0a2ac5a308e1249fdda78e87dc0">navit_window_roadbook_update()</a>, <a class="el" href="group__navit.html#ga38e803366dc39957f5dfcfbbcfd2b853">navit_zoom_to_route()</a>, <a class="el" href="osd__core_8c.html#a0c9ad7b4a3685122f1d9c384df3b9b1a">osd_nav_next_turn_draw()</a>, <a class="el" href="osd__core_8c.html#a4f5922c0e7f4e1e1e7aef609a1c77553">osd_route_guard_init()</a>, <a class="el" href="osd__core_8c.html#a3514a42388b0ba41998fd818ebb5f955">osd_speed_cam_draw()</a>, <a class="el" href="osd__core_8c.html#ad1b3aad9b6f3d02df61bea4c5759ebb4">osd_text_draw()</a>, <a class="el" href="pedestrian_8c.html#a6252c53cced4156ca778f7c704946da9">pedestrian_draw_arrows()</a>, <a class="el" href="maptool_2misc_8c.html#af614abb9152680903a876b5f8cc7480a">phase1_map()</a>, <a class="el" href="popup_8c.html#ad3f43c5450a12a4c15090a4c66689ebf">popup_item_dump()</a>, <a class="el" href="popup_8c.html#a210ae1cb75af3dc657ea19dcb06f7541">popup_show_item()</a>, <a class="el" href="popup_8c.html#ad0252613bfa45161e30eeec2f53f1737">popup_traffic_distortion()</a>, <a class="el" href="bookmarks_8c.html#a7536c963f67145457db8da7a789f6087">read_former_destination_map_as_list()</a>, <a class="el" href="binding__dbus_8c.html#a048f93e084c152c01ee24892e9c285b8">request_navit_route_export_geojson()</a>, <a class="el" href="binding__dbus_8c.html#abfa39940de8d6661f0e696a9a5d4f922">request_navit_route_export_gpx()</a>, <a class="el" href="route_8c.html#a1ffe6ed74a9a862b97a9258553399640">route_find_nearest_street()</a>, <a class="el" href="route_8h.html#aea343fbd29c37a4c09891694d9117b57">route_get_destination_description()</a>, <a class="el" href="route_8c.html#ac370bd70c11c34ed559a99dc00e79260">route_graph_build_next_map()</a>, <a class="el" href="gui__gtk__statusbar_8c.html#a798ad4510fcf2ee073cf71d5b859a549">statusbar_route_update()</a>, <a class="el" href="track_8c.html#a96845cb46a48a91280e9eba32af32b9d">tracking_doupdate_lines()</a>, <a class="el" href="track_8h.html#a947477c7269750bf7d88207ad972e8e5">tracking_get_attr()</a>, and <a class="el" href="vehicle__demo_8c.html#a4194f012c439533a7dd3c63fd14991bc">vehicle_demo_timer()</a>.</p>

</div>
</div>
<a class="anchor" id="af9f95fd57301452f5a93c0ffd75e13e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_remove_callback </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>this_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structcallback.html">callback</a> *&#160;</td>
          <td class="paramname"><em>cb</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes a callback from the list of attribute-change callbacks. </p>
<p>This function removes one callback from the list of callbacks functions that should be called when attributes of the map change.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>The map to remove the callback from </td></tr>
    <tr><td class="paramname">cb</td><td>The callback to remove </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="structmap.html#a217b9c8299ba6e63c8612e092cc632b8">map::attr_cbl</a>, and <a class="el" href="callback_8c.html#acddacea5602cf130d7dba44393d201ac">callback_list_remove()</a>.</p>

<p>Referenced by <a class="el" href="gui__internal__priv_8h.html#ae8c488f3233d54f845d063363cae7f1c">gui_internal_button_map_attr_new()</a>.</p>

</div>
</div>
<a class="anchor" id="adacb9c6f689c49cea9651adecef9dbdb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> map_requires_conversion </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>this_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if strings from a map have to be converted. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>Map to be checked for the need to convert strings </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if strings from the map have to be converted, false otherwise </dd></dl>

<p>References <a class="el" href="structmap__methods.html#af1b08a1287899114eba4a47645799da6">map_methods::charset</a>, and <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>.</p>

<p>Referenced by <a class="el" href="graphics_8c.html#aaf0787db32faf380b8853fcd3b635252">do_draw()</a>.</p>

</div>
</div>
<a class="anchor" id="a17363cc27a950b21d4a10c1e4977f750"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_search_destroy </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__search.html">map_search</a> *&#160;</td>
          <td class="paramname"><em>this_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroys a map search struct. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>The map search struct to be destroyed </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="structmap__methods.html#af1b08a1287899114eba4a47645799da6">map_methods::charset</a>, <a class="el" href="country_8c.html#ae0923d8e38c030b357bf53ff404dcb85">country_search_destroy()</a>, <a class="el" href="structmap__search.html#a44394a3517f5bc9d748efcae2d1f49a8">map_search::m</a>, <a class="el" href="structmap__methods.html#a72a6b2df4750d1555159371ef903437e">map_methods::map_search_destroy</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, <a class="el" href="structmap__search.html#a8f75b5d5014966abadcf590ebd09fbe9">map_search::priv</a>, <a class="el" href="structmap__search.html#a67ba4b14a20caf5d46a9031fccc6cd97">map_search::search_attr</a>, <a class="el" href="structattr.html#a2a2a2da11501e5c4b5464938c91b87e9">attr::str</a>, <a class="el" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">attr::type</a>, and <a class="el" href="structattr.html#a682d33096ece5ad806426918c15c4b10">attr::u</a>.</p>

<p>Referenced by <a class="el" href="mapset_8h.html#ad5f0941ee0b5b5e32e76942b24d24f70">mapset_search_destroy()</a>, and <a class="el" href="mapset_8h.html#aa44f7331590fa3b6f5af4e58283c6131">mapset_search_get_item()</a>.</p>

</div>
</div>
<a class="anchor" id="a2a6f7023b430cc03af1a8d72e8f6a09b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structitem.html">item</a>* map_search_get_item </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__search.html">map_search</a> *&#160;</td>
          <td class="paramname"><em>this_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns an item from a map search. </p>
<p>This returns an item of the result of a search on a map and advances the "item pointer" one step, so that at the next call the next item will be returned. If there are no more items in the result NULL is returned.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>Map search struct of the search </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>One item of the result </dd></dl>

<p>References <a class="el" href="country_8c.html#ac5d7a454c7f6c1a591e7a91bea148aca">country_search_get_item()</a>, <a class="el" href="structmap__search.html#a44394a3517f5bc9d748efcae2d1f49a8">map_search::m</a>, <a class="el" href="structitem.html#a9d90a195a3654c3b1e872ad92ae74369">item::map</a>, <a class="el" href="structmap__methods.html#a55ba68fabdbadd82bf7b4632b3a479bc">map_methods::map_search_get_item</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, <a class="el" href="structmap__search.html#a8f75b5d5014966abadcf590ebd09fbe9">map_search::priv</a>, <a class="el" href="structmap__search.html#a67ba4b14a20caf5d46a9031fccc6cd97">map_search::search_attr</a>, and <a class="el" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">attr::type</a>.</p>

<p>Referenced by <a class="el" href="mapset_8h.html#aa44f7331590fa3b6f5af4e58283c6131">mapset_search_get_item()</a>.</p>

</div>
</div>
<a class="anchor" id="a3192f982f537a0eb5cc0e32f306ead2d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structmap__search.html">map_search</a>* map_search_new </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structitem.html">item</a> *&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structattr.html">attr</a> *&#160;</td>
          <td class="paramname"><em>search_attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td>
          <td class="paramname"><em>partial</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Starts a search on a map. </p>
<p>This function starts a search on a map. What attributes one can search for depends on the map plugin.</p>
<p>The OSM/binfile plugin currently supports: attr_town_name, attr_street_name The MG plugin currently supports: ttr_town_postal, attr_town_name, attr_street_name</p>
<p>If you enable partial matches bear in mind that the search matches only the begin of the strings - a search for a street named "street" would match to "streetfoo", but not to "somestreet". Search is case insensitive.</p>
<p>The item passed to this function specifies a "superior item" to "search within" - e.g. a town in which we want to search for a street, or a country in which to search for a town.</p>
<p>Please also note that the search for countries is not handled by map plugins but by navit internally - have a look into country.c for details. Because of that every map plugin has to accept a country item to be passed as "superior item".</p>
<p>Note: If you change something here, please make sure to also update the documentation of <a class="el" href="mapset_8c.html#a17f2463f3956b2a1496beb03510f299b" title="Starts a search on a mapset. ">mapset_search_new()</a> in mapset.c!</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>The map that should be searched </td></tr>
    <tr><td class="paramname">item</td><td>Specifies a superior item to "search within" (see description) </td></tr>
    <tr><td class="paramname">search_attr</td><td>Attribute specifying what to search for. See description. </td></tr>
    <tr><td class="paramname">partial</td><td>Set this to true to also have partial matches. See description. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new map search struct for this search </dd></dl>

<p>References <a class="el" href="structmap__methods.html#af1b08a1287899114eba4a47645799da6">map_methods::charset</a>, <a class="el" href="country_8c.html#a5a608150ccb703e07941f33417613ea9">country_search_new()</a>, <a class="el" href="debug_8h.html#aba3c0ccefe6daa8941b173073268729e">dbg</a>, <a class="el" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25aa4a22485b46e3407434f1093e42867d4">lvl_debug</a>, <a class="el" href="structmap__search.html#a44394a3517f5bc9d748efcae2d1f49a8">map_search::m</a>, <a class="el" href="structmap__methods.html#afdc333eb68bdac67f5d65d33793ec03b">map_methods::map_search_new</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, <a class="el" href="structmap.html#af9de0e4f6b9c614edd2faa4c59b1d587">map::priv</a>, <a class="el" href="structmap__search.html#a8f75b5d5014966abadcf590ebd09fbe9">map_search::priv</a>, <a class="el" href="structmap__search.html#a67ba4b14a20caf5d46a9031fccc6cd97">map_search::search_attr</a>, <a class="el" href="structattr.html#a2a2a2da11501e5c4b5464938c91b87e9">attr::str</a>, <a class="el" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">attr::type</a>, and <a class="el" href="structattr.html#a682d33096ece5ad806426918c15c4b10">attr::u</a>.</p>

<p>Referenced by <a class="el" href="mapset_8h.html#aa44f7331590fa3b6f5af4e58283c6131">mapset_search_get_item()</a>.</p>

</div>
</div>
<a class="anchor" id="ae3e1e05fd13705105196919d3060ac5f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> map_selection_contains_item </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__selection.html">map_selection</a> *&#160;</td>
          <td class="paramname"><em>sel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td>
          <td class="paramname"><em>follow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">enum <a class="el" href="item_8h.html#a2679318a14061852e50df3c6e4e42f62">item_type</a>&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if a selection contains a item. </p>
<p>This function checks if a selection contains a item type</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sel</td><td>The selection to be checked </td></tr>
    <tr><td class="paramname">follow</td><td>Whether the next pointer of the selection should be followed </td></tr>
    <tr><td class="paramname">item</td><td>The item type to be checked </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if there is a match, false otherwise </dd></dl>

<p>References <a class="el" href="item_8c.html#a0be22e94558f43b94c5cc5f8b13b0e98">item_range_contains_item()</a>, <a class="el" href="structmap__selection.html#a1c83ff016741893133014d58cfc38e25">map_selection::next</a>, and <a class="el" href="structmap__selection.html#a9b160a76565e6f18e27042d4f06feeaa">map_selection::range</a>.</p>

<p>Referenced by <a class="el" href="poly_8c.html#a0b4f6aed0b770731b731e07828f75a2a">poly_get()</a>, <a class="el" href="street_8c.html#ad401b405ad35bc290d4d660fa53a5bef">street_get()</a>, and <a class="el" href="town_8c.html#a720c1771cdd6eb2ee755bd8eb5877c0a">town_get()</a>.</p>

</div>
</div>
<a class="anchor" id="a8ea9fcf03c34c4caf035f6597af9921f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> map_selection_contains_item_range </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__selection.html">map_selection</a> *&#160;</td>
          <td class="paramname"><em>sel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td>
          <td class="paramname"><em>follow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structitem__range.html">item_range</a> *&#160;</td>
          <td class="paramname"><em>range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if a selection contains a item range. </p>
<p>This function checks if a selection contains at least one of the items in range</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sel</td><td>The selection to be checked </td></tr>
    <tr><td class="paramname">follow</td><td>Whether the next pointer of the selection should be followed </td></tr>
    <tr><td class="paramname">ranges</td><td>The item ranges to be checked  the number of elements in ranges </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if there is a match, false otherwise </dd></dl>

<p>References <a class="el" href="item_8c.html#a049612b8c52acba4b3908b0f63503048">item_range_intersects_range()</a>, <a class="el" href="structmap__selection.html#a1c83ff016741893133014d58cfc38e25">map_selection::next</a>, and <a class="el" href="structmap__selection.html#a9b160a76565e6f18e27042d4f06feeaa">map_selection::range</a>.</p>

<p>Referenced by <a class="el" href="map_2mg_2map_8c.html#a6ca192f63f3381d3dbd2a77c04d03cd3">file_next()</a>.</p>

</div>
</div>
<a class="anchor" id="ae555f508f81a2cab83100a675ddeb131"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> map_selection_contains_item_rect </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__selection.html">map_selection</a> *&#160;</td>
          <td class="paramname"><em>sel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structitem.html">item</a> *&#160;</td>
          <td class="paramname"><em>item</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if a selection contains a rectangle containing an item. </p>
<p>This function checks if a selection contains a rectangle which exactly contains an item. The rectangle is automatically built around the given item.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sel</td><td>The selection to be checked </td></tr>
    <tr><td class="paramname">item</td><td>The item that the rectangle should be built around </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if the rectangle is within the selection, false otherwise </dd></dl>

<p>References <a class="el" href="popup_8c.html#aafe71b070668214be9b4b4849985dc6b">c</a>, <a class="el" href="group__coord.html#ga2c6d628b067bab6c56eb6504207e6feb">coord_rect_extend()</a>, <a class="el" href="item_8c.html#ae4ca690f46c2e5d491491d9f706f04e8">item_coord_get()</a>, <a class="el" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">coord_rect::lu</a>, <a class="el" href="map_8h.html#a32a7b56771f57d4da0e35ce243cfda21">map_selection_contains_rect()</a>, and <a class="el" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">coord_rect::rl</a>.</p>

<p>Referenced by <a class="el" href="binfile_8c.html#a7cf5717f06a9652425362a417221569d">binmap_search_get_item()</a>.</p>

</div>
</div>
<a class="anchor" id="a51455e36692349b9fecdd677a40c6c4f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_selection_destroy </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__selection.html">map_selection</a> *&#160;</td>
          <td class="paramname"><em>sel</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroys a map selection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sel</td><td>The map selection to be destroyed </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="structmap__selection.html#a1c83ff016741893133014d58cfc38e25">map_selection::next</a>, and <a class="el" href="garmin__img_8c.html#a72b26dfab473b56b23271050c385bcf7">next</a>.</p>

<p>Referenced by <a class="el" href="graphics_8c.html#aaf0787db32faf380b8853fcd3b635252">do_draw()</a>, <a class="el" href="classBackend.html#a139da3a81c132887ce12937faaf8d864">Backend::get_pois()</a>, <a class="el" href="classNGQPoint.html#ae78867c696a50e9f08c988283c04e2e8">NGQPoint::getPOI()</a>, <a class="el" href="gui__internal__poi_8h.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, <a class="el" href="gui__internal__priv_8h.html#a182f39c0a04cd59ff393a6dc66062f55">gui_internal_cmd_position_do()</a>, <a class="el" href="gui__gtk__poi_8c.html#a139bd4131511ebd1499b9c0ccc454492">model_poi()</a>, <a class="el" href="route_8c.html#a1ffe6ed74a9a862b97a9258553399640">route_find_nearest_street()</a>, <a class="el" href="track_8c.html#a96845cb46a48a91280e9eba32af32b9d">tracking_doupdate_lines()</a>, <a class="el" href="transform_8h.html#aa6ae4250d27f20248e9a06989cbeac86">transform_destroy()</a>, and <a class="el" href="transform_8h.html#acd2bd54ce3b5ab0fbf2f53f52aa9f175">transform_set_screen_selection()</a>.</p>

</div>
</div>
<a class="anchor" id="a41d391414ab9d50fd2e10a072a7e24fa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structmap__selection.html">map_selection</a>* map_selection_dup </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__selection.html">map_selection</a> *&#160;</td>
          <td class="paramname"><em>sel</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Duplicates a map selection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sel</td><td>The map selection to duplicate </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The duplicated map selection </dd></dl>

<p>References <a class="el" href="map_8c.html#a95b6e2263b7e7aed66a4a5d8ce8028c8">map_selection_dup_pro()</a>, and <a class="el" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1a02133eae2b9a5a58ec1bbf3072cdac0e">projection_none</a>.</p>

<p>Referenced by <a class="el" href="transform_8h.html#a5b24b78a752baed872322716720dc2e1">transform_dup()</a>, <a class="el" href="transform_8h.html#ab2c6743998d19227685bfc9ade4a73f0">transform_get_selection()</a>, and <a class="el" href="transform_8h.html#acd2bd54ce3b5ab0fbf2f53f52aa9f175">transform_set_screen_selection()</a>.</p>

</div>
</div>
<a class="anchor" id="a95b6e2263b7e7aed66a4a5d8ce8028c8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structmap__selection.html">map_selection</a>* map_selection_dup_pro </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap__selection.html">map_selection</a> *&#160;</td>
          <td class="paramname"><em>sel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">enum <a class="el" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a>&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">enum <a class="el" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a>&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Duplicates a map selection, transforming coordinates. </p>
<p>This duplicates a map selection and at the same time transforms the internal coordinates of the selection from one projection to another.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sel</td><td>The map selection to be duplicated </td></tr>
    <tr><td class="paramname">from</td><td>The projection used for the selection at the moment </td></tr>
    <tr><td class="paramname">to</td><td>The projection that should be used for the duplicated selection </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A duplicated, transformed map selection </dd></dl>

<p>References <a class="el" href="structmap__selection.html#ae00c4fb58fffa37688d33f864310a7b5">map_selection::c_rect</a>, <a class="el" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">coord_rect::lu</a>, <a class="el" href="structmap__selection.html#a1c83ff016741893133014d58cfc38e25">map_selection::next</a>, <a class="el" href="garmin__img_8c.html#a72b26dfab473b56b23271050c385bcf7">next</a>, <a class="el" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1a02133eae2b9a5a58ec1bbf3072cdac0e">projection_none</a>, <a class="el" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">coord_rect::rl</a>, <a class="el" href="transform_8c.html#ae1b04ebb9ec02e3a4ddffd54434412a1">transform_from_to()</a>, and <a class="el" href="structmap__selection.html#a0f7fd983dfb06bf8aba44c212bc8a78f">map_selection::u</a>.</p>

<p>Referenced by <a class="el" href="classBackend.html#a139da3a81c132887ce12937faaf8d864">Backend::get_pois()</a>, <a class="el" href="classNGQPoint.html#ae78867c696a50e9f08c988283c04e2e8">NGQPoint::getPOI()</a>, <a class="el" href="gui__internal__poi_8h.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, <a class="el" href="map_8h.html#a41d391414ab9d50fd2e10a072a7e24fa">map_selection_dup()</a>, and <a class="el" href="gui__gtk__poi_8c.html#a139bd4131511ebd1499b9c0ccc454492">model_poi()</a>.</p>

</div>
</div>
<a class="anchor" id="ac0160cd214565dad3584739d44fafed8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structmap__selection.html">map_selection</a>* map_selection_rect_new </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structpcoord.html">pcoord</a> *&#160;</td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td>
          <td class="paramname"><em>distance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a>&#160;</td>
          <td class="paramname"><em>order</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new rectangular map selection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">center</td><td>Coordinates of the center of the new rectangle </td></tr>
    <tr><td class="paramname">distance</td><td>Distance of the rectangle's borders from the center </td></tr>
    <tr><td class="paramname">order</td><td>Desired order of the new selection </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The new map selection </dd></dl>

<p>References <a class="el" href="structmap__selection.html#ae00c4fb58fffa37688d33f864310a7b5">map_selection::c_rect</a>, <a class="el" href="item_8c.html#a9d74082234bf94fe04bd8585c40c7f90">item_range_all</a>, <a class="el" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">coord_rect::lu</a>, <a class="el" href="structmap__selection.html#a1983d9d4a5df17d7a8d70fc7a7f1d9bf">map_selection::order</a>, <a class="el" href="structmap__selection.html#a9b160a76565e6f18e27042d4f06feeaa">map_selection::range</a>, <a class="el" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">coord_rect::rl</a>, <a class="el" href="structmap__selection.html#a0f7fd983dfb06bf8aba44c212bc8a78f">map_selection::u</a>, <a class="el" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">coord::x</a>, <a class="el" href="structpcoord.html#a875f35249b19419eb6dfbad5ff18f268">pcoord::x</a>, <a class="el" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">coord::y</a>, and <a class="el" href="structpcoord.html#a0e18858a037dadd7f64f0f139cac85d0">pcoord::y</a>.</p>

<p>Referenced by <a class="el" href="classBackend.html#a139da3a81c132887ce12937faaf8d864">Backend::get_pois()</a>, <a class="el" href="classNGQPoint.html#ae78867c696a50e9f08c988283c04e2e8">NGQPoint::getPOI()</a>, <a class="el" href="gui__internal__poi_8h.html#a760d19f7179ca5b9502b7a270cf5963d">gui_internal_cmd_pois()</a>, and <a class="el" href="gui__gtk__poi_8c.html#a139bd4131511ebd1499b9c0ccc454492">model_poi()</a>.</p>

</div>
</div>
<a class="anchor" id="a6a56a78da425713d4fe965e724d9e09e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="graphics__win32_8c.html#a672f45ba1cea6792eb9f7018d62ee646">int</a> map_set_attr </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>this_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structattr.html">attr</a> *&#160;</td>
          <td class="paramname"><em>attr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets an attribute of a map. </p>
<p>This sets an attribute of a map, overwriting an attribute of the same type if it already exists. This function also calls all the callbacks that are registred to be called when attributes change.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>The map to set the attribute of </td></tr>
    <tr><td class="paramname">attr</td><td>The attribute to set </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if the attr could be set, false otherwise </dd></dl>

<p>References <a class="el" href="structmap.html#a217b9c8299ba6e63c8612e092cc632b8">map::attr_cbl</a>, <a class="el" href="attr_8c.html#a5a7572ddfb89fd5558b5f0bae25dd444">attr_generic_set_attr()</a>, <a class="el" href="callback_8h.html#a59c3b215115598e2131ba07199dc15ce">callback_list_call_attr_2</a>, <a class="el" href="structmap__methods.html#ac35a17092ad3e8f19a7349d22899d0f2">map_methods::map_set_attr</a>, <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, <a class="el" href="structmap.html#af9de0e4f6b9c614edd2faa4c59b1d587">map::priv</a>, and <a class="el" href="structattr.html#acbbeecb9ce16c2d7973d0bd2ff544457">attr::type</a>.</p>

<p>Referenced by <a class="el" href="gui__gtk__window_8c.html#a86131d3b38a35f2cdb0cb286dfd311ca">gui_gtk_action_toggled()</a>, <a class="el" href="gui__internal__priv_8h.html#ae8c488f3233d54f845d063363cae7f1c">gui_internal_button_map_attr_new()</a>, <a class="el" href="binding__python_8c.html#adfff8df031b49cd0f167c3eb43e234c7">map_set_attr_py()</a>, <a class="el" href="group__navit.html#ga359fb8a89c570167d2f7eaef272502ce">navit_init()</a>, <a class="el" href="pedestrian_8c.html#a8da9aad3ef0a3ecc8615987664fbd1f3">pedestrian_navit_init()</a>, and <a class="el" href="binding__dbus_8c.html#a111df089fee752c2f5d4e112fb125083">request_map_set_attr()</a>.</p>

</div>
</div>
<a class="anchor" id="a1eb8e44290e34baa9b178624fc32beec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void map_set_projection </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmap.html">map</a> *&#160;</td>
          <td class="paramname"><em>this_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">enum <a class="el" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a>&#160;</td>
          <td class="paramname"><em>pro</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the projection of a map. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">this_</td><td>The map to set the projection of </td></tr>
    <tr><td class="paramname">pro</td><td>The projection to be set </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="structmap.html#a16d16984fc659709e588e1581c6ef524">map::meth</a>, and <a class="el" href="structmap__methods.html#a22a82fd1148cb3a43d06178dfc8792e4">map_methods::pro</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a17bf509a62d7e41cea2feab69b67d1ca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* map_converted_string_tmp =NULL</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Referenced by <a class="el" href="map_8h.html#a23f07c7eafbdd5994dfdb8038d356516">map_convert_dup()</a>, and <a class="el" href="map_8h.html#a7a181e682ec4a9174897686bd91a89b9">map_convert_string_tmp()</a>.</p>

</div>
</div>
<a class="anchor" id="a72847bda2999f94a238bde22e8072d2d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structobject__func.html">object_func</a> map_func</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
<div class="line">    attr_map,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#ac81207135f04874e385e31423db53dd1">object_func_new</a>)<a class="code" href="map_8c.html#a9a8864bcc7e1f687fe52c38b36bcad63">map_new</a>,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#ae9e477667b07b8540cb03a8dbfab1194">object_func_get_attr</a>)<a class="code" href="map_8c.html#aea4bb45171274a8b6bd4de3d33606f35">map_get_attr</a>,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#a62e98f09044dd1cb14c1786db1a6ee52">object_func_iter_new</a>)NULL,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#a0078fefdd19df7414a8f31e5f715c6da">object_func_iter_destroy</a>)NULL,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#a24e9432d6efe27c881bb77749bc1879c">object_func_set_attr</a>)<a class="code" href="map_8c.html#a6a56a78da425713d4fe965e724d9e09e">map_set_attr</a>,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#a5b15be5d4fcaf8d61b32ad26a5bbd615">object_func_add_attr</a>)NULL,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#a60fb0dd5b7e3d5180265f13cf0c3dca0">object_func_remove_attr</a>)NULL,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#a968269376ba0e1651ec5519f19798d5f">object_func_init</a>)NULL,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#a6c7322fcd20ded61fbe44adf17b39b06">object_func_destroy</a>)<a class="code" href="map_8c.html#a06f624f20492c8e9e9f3c7eb43b70396">map_destroy</a>,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#a1cd3fd5dbf8df120697ce35f8f4fed3a">object_func_dup</a>)NULL,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#a5e98a3d5adcd0ff678190bd144ab8cca">object_func_ref</a>)<a class="code" href="xmlconfig_8c.html#acc1bc70fa25d7d81b1fa01fe6ef3a2f6">navit_object_ref</a>,</div>
<div class="line">    (<a class="code" href="xmlconfig_8h.html#a19932fea483ba3e4d58b044d53ba9e2a">object_func_unref</a>)<a class="code" href="xmlconfig_8c.html#a6430bef5b4ff56f67fe80bfee71ef896">navit_object_unref</a>,</div>
<div class="line">}</div>
<div class="ttc" id="map_8c_html_a06f624f20492c8e9e9f3c7eb43b70396"><div class="ttname"><a href="map_8c.html#a06f624f20492c8e9e9f3c7eb43b70396">map_destroy</a></div><div class="ttdeci">void map_destroy(struct map *m)</div><div class="ttdoc">Destroys an opened map. </div><div class="ttdef"><b>Definition:</b> map.c:278</div></div>
<div class="ttc" id="xmlconfig_8h_html_a6c7322fcd20ded61fbe44adf17b39b06"><div class="ttname"><a href="xmlconfig_8h.html#a6c7322fcd20ded61fbe44adf17b39b06">object_func_destroy</a></div><div class="ttdeci">void(* object_func_destroy)(void *)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:62</div></div>
<div class="ttc" id="xmlconfig_8h_html_a1cd3fd5dbf8df120697ce35f8f4fed3a"><div class="ttname"><a href="xmlconfig_8h.html#a1cd3fd5dbf8df120697ce35f8f4fed3a">object_func_dup</a></div><div class="ttdeci">void *(* object_func_dup)(void *)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:63</div></div>
<div class="ttc" id="xmlconfig_8h_html_a0078fefdd19df7414a8f31e5f715c6da"><div class="ttname"><a href="xmlconfig_8h.html#a0078fefdd19df7414a8f31e5f715c6da">object_func_iter_destroy</a></div><div class="ttdeci">void(* object_func_iter_destroy)(struct attr_iter *)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:57</div></div>
<div class="ttc" id="xmlconfig_8c_html_a6430bef5b4ff56f67fe80bfee71ef896"><div class="ttname"><a href="xmlconfig_8c.html#a6430bef5b4ff56f67fe80bfee71ef896">navit_object_unref</a></div><div class="ttdeci">void navit_object_unref(struct navit_object *obj)</div><div class="ttdef"><b>Definition:</b> xmlconfig.c:1213</div></div>
<div class="ttc" id="map_8c_html_a6a56a78da425713d4fe965e724d9e09e"><div class="ttname"><a href="map_8c.html#a6a56a78da425713d4fe965e724d9e09e">map_set_attr</a></div><div class="ttdeci">int map_set_attr(struct map *this_, struct attr *attr)</div><div class="ttdoc">Sets an attribute of a map. </div><div class="ttdef"><b>Definition:</b> map.c:154</div></div>
<div class="ttc" id="xmlconfig_8h_html_a968269376ba0e1651ec5519f19798d5f"><div class="ttname"><a href="xmlconfig_8h.html#a968269376ba0e1651ec5519f19798d5f">object_func_init</a></div><div class="ttdeci">int(* object_func_init)(void *)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:61</div></div>
<div class="ttc" id="xmlconfig_8h_html_a5e98a3d5adcd0ff678190bd144ab8cca"><div class="ttname"><a href="xmlconfig_8h.html#a5e98a3d5adcd0ff678190bd144ab8cca">object_func_ref</a></div><div class="ttdeci">void *(* object_func_ref)(void *)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:64</div></div>
<div class="ttc" id="xmlconfig_8h_html_a62e98f09044dd1cb14c1786db1a6ee52"><div class="ttname"><a href="xmlconfig_8h.html#a62e98f09044dd1cb14c1786db1a6ee52">object_func_iter_new</a></div><div class="ttdeci">struct attr_iter *(* object_func_iter_new)(void *)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:56</div></div>
<div class="ttc" id="xmlconfig_8h_html_a19932fea483ba3e4d58b044d53ba9e2a"><div class="ttname"><a href="xmlconfig_8h.html#a19932fea483ba3e4d58b044d53ba9e2a">object_func_unref</a></div><div class="ttdeci">void *(* object_func_unref)(void *)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:65</div></div>
<div class="ttc" id="map_8c_html_a9a8864bcc7e1f687fe52c38b36bcad63"><div class="ttname"><a href="map_8c.html#a9a8864bcc7e1f687fe52c38b36bcad63">map_new</a></div><div class="ttdeci">struct map * map_new(struct attr *parent, struct attr **attrs)</div><div class="ttdoc">Opens a new map. </div><div class="ttdef"><b>Definition:</b> map.c:92</div></div>
<div class="ttc" id="xmlconfig_8h_html_a60fb0dd5b7e3d5180265f13cf0c3dca0"><div class="ttname"><a href="xmlconfig_8h.html#a60fb0dd5b7e3d5180265f13cf0c3dca0">object_func_remove_attr</a></div><div class="ttdeci">int(* object_func_remove_attr)(void *, struct attr *attr)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:60</div></div>
<div class="ttc" id="xmlconfig_8h_html_ac81207135f04874e385e31423db53dd1"><div class="ttname"><a href="xmlconfig_8h.html#ac81207135f04874e385e31423db53dd1">object_func_new</a></div><div class="ttdeci">void *(* object_func_new)(struct attr *parent, struct attr **attrs)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:54</div></div>
<div class="ttc" id="xmlconfig_8h_html_a24e9432d6efe27c881bb77749bc1879c"><div class="ttname"><a href="xmlconfig_8h.html#a24e9432d6efe27c881bb77749bc1879c">object_func_set_attr</a></div><div class="ttdeci">int(* object_func_set_attr)(void *, struct attr *attr)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:58</div></div>
<div class="ttc" id="xmlconfig_8h_html_ae9e477667b07b8540cb03a8dbfab1194"><div class="ttname"><a href="xmlconfig_8h.html#ae9e477667b07b8540cb03a8dbfab1194">object_func_get_attr</a></div><div class="ttdeci">int(* object_func_get_attr)(void *, enum attr_type type, struct attr *attr, struct attr_iter *iter)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:55</div></div>
<div class="ttc" id="map_8c_html_aea4bb45171274a8b6bd4de3d33606f35"><div class="ttname"><a href="map_8c.html#aea4bb45171274a8b6bd4de3d33606f35">map_get_attr</a></div><div class="ttdeci">int map_get_attr(struct map *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)</div><div class="ttdoc">Gets an attribute from a map. </div><div class="ttdef"><b>Definition:</b> map.c:129</div></div>
<div class="ttc" id="xmlconfig_8c_html_acc1bc70fa25d7d81b1fa01fe6ef3a2f6"><div class="ttname"><a href="xmlconfig_8c.html#acc1bc70fa25d7d81b1fa01fe6ef3a2f6">navit_object_ref</a></div><div class="ttdeci">struct navit_object * navit_object_ref(struct navit_object *obj)</div><div class="ttdef"><b>Definition:</b> xmlconfig.c:1207</div></div>
<div class="ttc" id="xmlconfig_8h_html_a5b15be5d4fcaf8d61b32ad26a5bbd615"><div class="ttname"><a href="xmlconfig_8h.html#a5b15be5d4fcaf8d61b32ad26a5bbd615">object_func_add_attr</a></div><div class="ttdeci">int(* object_func_add_attr)(void *, struct attr *attr)</div><div class="ttdef"><b>Definition:</b> xmlconfig.h:59</div></div>
</div><!-- fragment -->
<p>Referenced by <a class="el" href="map_8h.html#a9a8864bcc7e1f687fe52c38b36bcad63">map_new()</a>, and <a class="el" href="xmlconfig_8h.html#aa0aedbfd467d2009ac65a983734fc556">object_func_lookup()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="map_8c.html">map.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>