/usr/share/gtk-doc/html/osmgpsmap/OsmGpsMap.html is in libosmgpsmap-dev 0.7.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OsmGpsMap</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="OsmGpsMap Reference Manual">
<link rel="up" href="api-reference.html" title="API Reference">
<link rel="prev" href="api-reference.html" title="API Reference">
<link rel="next" href="OsmGpsMapLayer.html" title="OsmGpsMapLayer">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="api-reference.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="api-reference.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">OsmGpsMap Reference Manual</th>
<td><a accesskey="n" href="OsmGpsMapLayer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#OsmGpsMap.synopsis" class="shortcut">Top</a>
|
<a href="#OsmGpsMap.description" class="shortcut">Description</a>
|
<a href="#OsmGpsMap.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#OsmGpsMap.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
<a href="#OsmGpsMap.properties" class="shortcut">Properties</a>
|
<a href="#OsmGpsMap.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="OsmGpsMap"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="OsmGpsMap.top_of_page"></a>OsmGpsMap</span></h2>
<p>OsmGpsMap — The map display widget</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="OsmGpsMap.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="OsmGpsMap.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <osm-gps-map.h>
<a class="link" href="OsmGpsMap.html#OsmGpsMap-struct" title="OsmGpsMap">OsmGpsMap</a>;
struct <a class="link" href="OsmGpsMap.html#OsmGpsMapClass" title="struct OsmGpsMapClass">OsmGpsMapClass</a>;
#define <a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-INVALID:CAPS" title="OSM_GPS_MAP_INVALID">OSM_GPS_MAP_INVALID</a>
#define <a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-DISABLED:CAPS" title="OSM_GPS_MAP_CACHE_DISABLED">OSM_GPS_MAP_CACHE_DISABLED</a>
#define <a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-AUTO:CAPS" title="OSM_GPS_MAP_CACHE_AUTO">OSM_GPS_MAP_CACHE_AUTO</a>
#define <a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-FRIENDLY:CAPS" title="OSM_GPS_MAP_CACHE_FRIENDLY">OSM_GPS_MAP_CACHE_FRIENDLY</a>
<span class="returnvalue">gchar</span> * <a class="link" href="OsmGpsMap.html#osm-gps-map-get-default-cache-directory" title="osm_gps_map_get_default_cache_directory ()">osm_gps_map_get_default_cache_directory</a>
(<em class="parameter"><code><span class="type">void</span></code></em>);
enum <a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t">OsmGpsMapSource_t</a>;
const <span class="returnvalue">char</span> * <a class="link" href="OsmGpsMap.html#osm-gps-map-source-get-friendly-name" title="osm_gps_map_source_get_friendly_name ()">osm_gps_map_source_get_friendly_name</a>
(<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="OsmGpsMap.html#osm-gps-map-source-get-repo-uri" title="osm_gps_map_source_get_repo_uri ()">osm_gps_map_source_get_repo_uri</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="OsmGpsMap.html#osm-gps-map-source-get-image-format" title="osm_gps_map_source_get_image_format ()">osm_gps_map_source_get_image_format</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);
<span class="returnvalue">int</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-source-get-min-zoom" title="osm_gps_map_source_get_min_zoom ()">osm_gps_map_source_get_min_zoom</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);
<span class="returnvalue">int</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-source-get-max-zoom" title="osm_gps_map_source_get_max_zoom ()">osm_gps_map_source_get_max_zoom</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-source-is-valid" title="osm_gps_map_source_is_valid ()">osm_gps_map_source_is_valid</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);
<span class="returnvalue">GtkWidget</span> * <a class="link" href="OsmGpsMap.html#osm-gps-map-new" title="osm_gps_map_new ()">osm_gps_map_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-download-maps" title="osm_gps_map_download_maps ()">osm_gps_map_download_maps</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt1</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt2</code></em>,
<em class="parameter"><code><span class="type">int</span> zoom_start</code></em>,
<em class="parameter"><code><span class="type">int</span> zoom_end</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-download-cancel-all" title="osm_gps_map_download_cancel_all ()">osm_gps_map_download_cancel_all</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-get-bbox" title="osm_gps_map_get_bbox ()">osm_gps_map_get_bbox</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt1</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt2</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-set-center" title="osm_gps_map_set_center ()">osm_gps_map_set_center</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">float</span> latitude</code></em>,
<em class="parameter"><code><span class="type">float</span> longitude</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-set-center-and-zoom" title="osm_gps_map_set_center_and_zoom ()">osm_gps_map_set_center_and_zoom</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">float</span> latitude</code></em>,
<em class="parameter"><code><span class="type">float</span> longitude</code></em>,
<em class="parameter"><code><span class="type">int</span> zoom</code></em>);
<span class="returnvalue">int</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-set-zoom" title="osm_gps_map_set_zoom ()">osm_gps_map_set_zoom</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">int</span> zoom</code></em>);
<span class="returnvalue">int</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-zoom-in" title="osm_gps_map_zoom_in ()">osm_gps_map_zoom_in</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);
<span class="returnvalue">int</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-zoom-out" title="osm_gps_map_zoom_out ()">osm_gps_map_zoom_out</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-scroll" title="osm_gps_map_scroll ()">osm_gps_map_scroll</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">gint</span> dx</code></em>,
<em class="parameter"><code><span class="type">gint</span> dy</code></em>);
<span class="returnvalue">float</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-get-scale" title="osm_gps_map_get_scale ()">osm_gps_map_get_scale</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);
enum <a class="link" href="OsmGpsMap.html#OsmGpsMapKey-t" title="enum OsmGpsMapKey_t">OsmGpsMapKey_t</a>;
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-set-keyboard-shortcut" title="osm_gps_map_set_keyboard_shortcut ()">osm_gps_map_set_keyboard_shortcut</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapKey-t" title="enum OsmGpsMapKey_t"><span class="type">OsmGpsMapKey_t</span></a> key</code></em>,
<em class="parameter"><code><span class="type">guint</span> keyval</code></em>);
<a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="returnvalue">OsmGpsMapPoint</span></a> * <a class="link" href="OsmGpsMap.html#osm-gps-map-get-event-location" title="osm_gps_map_get_event_location ()">osm_gps_map_get_event_location</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">GdkEventButton</span> *event</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-convert-geographic-to-screen" title="osm_gps_map_convert_geographic_to_screen ()">osm_gps_map_convert_geographic_to_screen</a>
(<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt</code></em>,
<em class="parameter"><code><span class="type">gint</span> *pixel_x</code></em>,
<em class="parameter"><code><span class="type">gint</span> *pixel_y</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-convert-screen-to-geographic" title="osm_gps_map_convert_screen_to_geographic ()">osm_gps_map_convert_screen_to_geographic</a>
(<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">gint</span> pixel_x</code></em>,
<em class="parameter"><code><span class="type">gint</span> pixel_y</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-gps-add" title="osm_gps_map_gps_add ()">osm_gps_map_gps_add</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">float</span> latitude</code></em>,
<em class="parameter"><code><span class="type">float</span> longitude</code></em>,
<em class="parameter"><code><span class="type">float</span> heading</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-gps-clear" title="osm_gps_map_gps_clear ()">osm_gps_map_gps_clear</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);
<a class="link" href="OsmGpsMapTrack.html" title="OsmGpsMapTrack"><span class="returnvalue">OsmGpsMapTrack</span></a> * <a class="link" href="OsmGpsMap.html#osm-gps-map-gps-get-track" title="osm_gps_map_gps_get_track ()">osm_gps_map_gps_get_track</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-track-add" title="osm_gps_map_track_add ()">osm_gps_map_track_add</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapTrack.html" title="OsmGpsMapTrack"><span class="type">OsmGpsMapTrack</span></a> *track</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-track-remove" title="osm_gps_map_track_remove ()">osm_gps_map_track_remove</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapTrack.html" title="OsmGpsMapTrack"><span class="type">OsmGpsMapTrack</span></a> *track</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-track-remove-all" title="osm_gps_map_track_remove_all ()">osm_gps_map_track_remove_all</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);
<a class="link" href="OsmGpsMapImage.html" title="OsmGpsMapImage"><span class="returnvalue">OsmGpsMapImage</span></a> * <a class="link" href="OsmGpsMap.html#osm-gps-map-image-add" title="osm_gps_map_image_add ()">osm_gps_map_image_add</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">float</span> latitude</code></em>,
<em class="parameter"><code><span class="type">float</span> longitude</code></em>,
<em class="parameter"><code><span class="type">GdkPixbuf</span> *image</code></em>);
<a class="link" href="OsmGpsMapImage.html" title="OsmGpsMapImage"><span class="returnvalue">OsmGpsMapImage</span></a> * <a class="link" href="OsmGpsMap.html#osm-gps-map-image-add-with-alignment" title="osm_gps_map_image_add_with_alignment ()">osm_gps_map_image_add_with_alignment</a>
(<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">float</span> latitude</code></em>,
<em class="parameter"><code><span class="type">float</span> longitude</code></em>,
<em class="parameter"><code><span class="type">GdkPixbuf</span> *image</code></em>,
<em class="parameter"><code><span class="type">float</span> xalign</code></em>,
<em class="parameter"><code><span class="type">float</span> yalign</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-image-remove" title="osm_gps_map_image_remove ()">osm_gps_map_image_remove</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapImage.html" title="OsmGpsMapImage"><span class="type">OsmGpsMapImage</span></a> *image</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-image-remove-all" title="osm_gps_map_image_remove_all ()">osm_gps_map_image_remove_all</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-layer-add" title="osm_gps_map_layer_add ()">osm_gps_map_layer_add</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapLayer.html" title="OsmGpsMapLayer"><span class="type">OsmGpsMapLayer</span></a> *layer</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-layer-remove" title="osm_gps_map_layer_remove ()">osm_gps_map_layer_remove</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapLayer.html" title="OsmGpsMapLayer"><span class="type">OsmGpsMapLayer</span></a> *layer</code></em>);
<span class="returnvalue">void</span> <a class="link" href="OsmGpsMap.html#osm-gps-map-layer-remove-all" title="osm_gps_map_layer_remove_all ()">osm_gps_map_layer_remove_all</a> (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="OsmGpsMap.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkDrawingArea
+----OsmGpsMap
</pre>
</div>
<div class="refsect1">
<a name="OsmGpsMap.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
OsmGpsMap implements
AtkImplementorIface and GtkBuildable.</p>
</div>
<div class="refsect1">
<a name="OsmGpsMap.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--auto-center" title='The "auto-center" property'>auto-center</a>" <span class="type">gboolean</span> : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--auto-center-threshold" title='The "auto-center-threshold" property'>auto-center-threshold</a>" <span class="type">gfloat</span> : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--auto-download" title='The "auto-download" property'>auto-download</a>" <span class="type">gboolean</span> : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--drag-limit" title='The "drag-limit" property'>drag-limit</a>" <span class="type">gint</span> : Read / Write / Construct Only
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--gps-track-highlight-radius" title='The "gps-track-highlight-radius" property'>gps-track-highlight-radius</a>" <span class="type">gint</span> : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--gps-track-point-radius" title='The "gps-track-point-radius" property'>gps-track-point-radius</a>" <span class="type">gint</span> : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--gps-track-width" title='The "gps-track-width" property'>gps-track-width</a>" <span class="type">gfloat</span> : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--image-format" title='The "image-format" property'>image-format</a>" <span class="type">gchar</span>* : Read / Write / Construct Only
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--latitude" title='The "latitude" property'>latitude</a>" <span class="type">gfloat</span> : Read
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--longitude" title='The "longitude" property'>longitude</a>" <span class="type">gfloat</span> : Read
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--map-source" title='The "map-source" property'>map-source</a>" <span class="type">gint</span> : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--map-x" title='The "map-x" property'>map-x</a>" <span class="type">gint</span> : Read / Write / Construct Only
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--map-y" title='The "map-y" property'>map-y</a>" <span class="type">gint</span> : Read / Write / Construct Only
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--max-zoom" title='The "max-zoom" property'>max-zoom</a>" <span class="type">gint</span> : Read / Write / Construct Only
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--min-zoom" title='The "min-zoom" property'>min-zoom</a>" <span class="type">gint</span> : Read / Write / Construct Only
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--proxy-uri" title='The "proxy-uri" property'>proxy-uri</a>" <span class="type">gchar</span>* : Read / Write / Construct Only
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--record-trip-history" title='The "record-trip-history" property'>record-trip-history</a>" <span class="type">gboolean</span> : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--repo-uri" title='The "repo-uri" property'>repo-uri</a>" <span class="type">gchar</span>* : Read / Write / Construct Only
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--show-gps-point" title='The "show-gps-point" property'>show-gps-point</a>" <span class="type">gboolean</span> : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--show-trip-history" title='The "show-trip-history" property'>show-trip-history</a>" <span class="type">gboolean</span> : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-cache" title='The "tile-cache" property'>tile-cache</a>" <span class="type">gchar</span>* : Read / Write / Construct
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-cache-base" title='The "tile-cache-base" property'>tile-cache-base</a>" <span class="type">gchar</span>* : Read / Write / Construct Only
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-cache-is-full-path" title='The "tile-cache-is-full-path" property'>tile-cache-is-full-path</a>" <span class="type">gboolean</span> : Read / Write
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-zoom-offset" title='The "tile-zoom-offset" property'>tile-zoom-offset</a>" <span class="type">gint</span> : Read / Write / Construct Only
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--tiles-queued" title='The "tiles-queued" property'>tiles-queued</a>" <span class="type">gint</span> : Read
"<a class="link" href="OsmGpsMap.html#OsmGpsMap--zoom" title='The "zoom" property'>zoom</a>" <span class="type">gint</span> : Read / Write / Construct Only
</pre>
</div>
<div class="refsect1">
<a name="OsmGpsMap.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="OsmGpsMap.html#OsmGpsMap-changed" title='The "changed" signal'>changed</a>" : <code class="literal">Run First</code>
</pre>
</div>
<div class="refsect1">
<a name="OsmGpsMap.description"></a><h2>Description</h2>
<p>
<a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> is a widget for displaying a map, optionally overlaid with a
track(s) of GPS co-ordinates, images, points of interest or on screen display
controls. <a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> downloads (and caches for offline use) map data from a
number of websites, including
<a class="ulink" href="http://www.openstreetmap.org" target="_top"><em class="citetitle">OpenStreetMap</em></a>
</p>
<p>
</p>
<div class="example">
<a name="idp8641456"></a><p class="title"><b>Example 1. Showing a map</b></p>
<div class="example-contents"><pre class="programlisting">
int main (int argc, char **argv)
{
g_thread_init(NULL);
gtk_init (&argc, &argv);
GtkWidget *map = osm_gps_map_new ();
GtkWidget *w = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_container_add (GTK_CONTAINER(w), map);
gtk_widget_show_all (w);
gtk_main ();
return 0;
}
</pre></div>
</div>
<p><br class="example-break">
</p>
<p>
<a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> allows great flexibility in customizing how the map tiles are
cached, see <a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-cache-base" title='The "tile-cache-base" property'><span class="type">"tile-cache-base"</span></a> and <a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-cache" title='The "tile-cache" property'><span class="type">"tile-cache"</span></a> for more
information.
</p>
<p>
A number of different map sources are supported, see <a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a>. The
default source, <code class="literal">OSM_GPS_MAP_SOURCE_OPENSTREETMAP</code> always works. Other sources,
particular those from proprietary providers may work occasionally, and then
cease to work. To check if a source is supported for the given version of
this library, call <a class="link" href="OsmGpsMap.html#osm-gps-map-source-is-valid" title="osm_gps_map_source_is_valid ()"><code class="function">osm_gps_map_source_is_valid()</code></a>.
</p>
<p>
</p>
<div class="example">
<a name="idp8650768"></a><p class="title"><b>Example 2. Map with custom source and cache dir</b></p>
<div class="example-contents"><pre class="programlisting">
int main (int argc, char **argv)
{
g_thread_init(NULL);
gtk_init (&argc, &argv);
OsmGpsMapSource_t source = OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_SATELLITE;
if ( !osm_gps_map_source_is_valid(source) )
return 1;
GtkWidget *map = g_object_new (OSM_TYPE_GPS_MAP,
"map-source", source,
"tile-cache", "/tmp/",
NULL);
GtkWidget *w = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_container_add (GTK_CONTAINER(w), map);
gtk_widget_show_all (w);
gtk_main ();
return 0;
}
</pre></div>
</div>
<p><br class="example-break">
</p>
<p>
Finally, if you wish to use a custom map source not supported by <a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a>,
such as a custom map created with
<a class="ulink" href="http://www.cloudmade.com" target="_top"><em class="citetitle">CloudMade</em></a>
then you can also pass a specially formatted string to <a class="link" href="OsmGpsMap.html#OsmGpsMap--repo-uri" title='The "repo-uri" property'><span class="type">"repo-uri"</span></a>.
</p>
<p>
</p>
<div class="example">
<a name="idp8656608"></a><p class="title"><b>Example 3. Map using custom CloudMade map and on screen display</b></p>
<div class="example-contents"><pre class="programlisting">
int main (int argc, char **argv)
{
g_thread_init(NULL);
gtk_init (&argc, &argv);
const gchar *cloudmate = "http://a.tile.cloudmade.com/YOUR_API_KEY/1/256/#Z/#X/#Y.png";
GtkWidget *map = g_object_new (OSM_TYPE_GPS_MAP,
"repo-uri", cloudmate,
NULL);
OsmGpsMapOsd *osd = osm_gps_map_osd_new ();
GtkWidget *w = gtk_window_new (GTK_WINDOW_TOPLEVEL);
osm_gps_map_layer_add (OSM_GPS_MAP(map), OSM_GPS_MAP_LAYER(osd));
gtk_container_add (GTK_CONTAINER(w), map);
gtk_widget_show_all (w);
gtk_main ();
return 0;
}
</pre></div>
</div>
<p><br class="example-break">
</p>
</div>
<div class="refsect1">
<a name="OsmGpsMap.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="OsmGpsMap-struct"></a><h3>OsmGpsMap</h3>
<pre class="programlisting">typedef struct _OsmGpsMap OsmGpsMap;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMapClass"></a><h3>struct OsmGpsMapClass</h3>
<pre class="programlisting">struct OsmGpsMapClass {
GtkDrawingAreaClass parent_class;
void (*draw_gps_point) (OsmGpsMap *map, GdkDrawable *drawable);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="OSM-GPS-MAP-INVALID:CAPS"></a><h3>OSM_GPS_MAP_INVALID</h3>
<pre class="programlisting">#define OSM_GPS_MAP_INVALID (0.0/0.0)
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="OSM-GPS-MAP-CACHE-DISABLED:CAPS"></a><h3>OSM_GPS_MAP_CACHE_DISABLED</h3>
<pre class="programlisting">#define OSM_GPS_MAP_CACHE_DISABLED "none://"
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="OSM-GPS-MAP-CACHE-AUTO:CAPS"></a><h3>OSM_GPS_MAP_CACHE_AUTO</h3>
<pre class="programlisting">#define OSM_GPS_MAP_CACHE_AUTO "auto://"
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="OSM-GPS-MAP-CACHE-FRIENDLY:CAPS"></a><h3>OSM_GPS_MAP_CACHE_FRIENDLY</h3>
<pre class="programlisting">#define OSM_GPS_MAP_CACHE_FRIENDLY "friendly://"
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-get-default-cache-directory"></a><h3>osm_gps_map_get_default_cache_directory ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> * osm_gps_map_get_default_cache_directory
(<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the default cache directory for the library, that is the base
directory to which the full cache path is appended. If
<a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-cache-base" title='The "tile-cache-base" property'><span class="type">"tile-cache-base"</span></a> is omitted from the constructor then this value
is used.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMapSource-t"></a><h3>enum OsmGpsMapSource_t</h3>
<pre class="programlisting">typedef enum {
OSM_GPS_MAP_SOURCE_NULL,
OSM_GPS_MAP_SOURCE_OPENSTREETMAP,
OSM_GPS_MAP_SOURCE_OPENSTREETMAP_RENDERER,
OSM_GPS_MAP_SOURCE_OPENAERIALMAP,
OSM_GPS_MAP_SOURCE_MAPS_FOR_FREE,
OSM_GPS_MAP_SOURCE_OPENCYCLEMAP,
OSM_GPS_MAP_SOURCE_OSM_PUBLIC_TRANSPORT,
OSM_GPS_MAP_SOURCE_GOOGLE_STREET,
OSM_GPS_MAP_SOURCE_GOOGLE_SATELLITE,
OSM_GPS_MAP_SOURCE_GOOGLE_HYBRID,
OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_STREET,
OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_SATELLITE,
OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_HYBRID,
OSM_GPS_MAP_SOURCE_YAHOO_STREET,
OSM_GPS_MAP_SOURCE_YAHOO_SATELLITE,
OSM_GPS_MAP_SOURCE_YAHOO_HYBRID,
OSM_GPS_MAP_SOURCE_OSMC_TRAILS,
OSM_GPS_MAP_SOURCE_LAST
} OsmGpsMapSource_t;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-source-get-friendly-name"></a><h3>osm_gps_map_source_get_friendly_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * osm_gps_map_source_get_friendly_name
(<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-source-get-repo-uri"></a><h3>osm_gps_map_source_get_repo_uri ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * osm_gps_map_source_get_repo_uri (<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-source-get-image-format"></a><h3>osm_gps_map_source_get_image_format ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * osm_gps_map_source_get_image_format (<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-source-get-min-zoom"></a><h3>osm_gps_map_source_get_min_zoom ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> osm_gps_map_source_get_min_zoom (<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-source-get-max-zoom"></a><h3>osm_gps_map_source_get_max_zoom ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> osm_gps_map_source_get_max_zoom (<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-source-is-valid"></a><h3>osm_gps_map_source_is_valid ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> osm_gps_map_source_is_valid (<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> source</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-new"></a><h3>osm_gps_map_new ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * osm_gps_map_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Returns a new <a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> object, defaults to showing data from
<a class="ulink" href="http://www.openstreetmap.org" target="_top"><em class="citetitle">OpenStreetMap</em></a>
</p>
<p>
See the properties description for more information about construction
parameters than could be passed to <code class="function">g_object_new()</code>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly created <a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> object.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-download-maps"></a><h3>osm_gps_map_download_maps ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_download_maps (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt1</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt2</code></em>,
<em class="parameter"><code><span class="type">int</span> zoom_start</code></em>,
<em class="parameter"><code><span class="type">int</span> zoom_end</code></em>);</pre>
<p>
Downloads all tiles over the supplied zoom range in the rectangular
region specified by pt1 (north west corner) to pt2 (south east corner)
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-download-cancel-all"></a><h3>osm_gps_map_download_cancel_all ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_download_cancel_all (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);</pre>
<p>
Cancels all tiles currently being downloaded. Typically used if you wish to
cacel a large number of tiles queued using <a class="link" href="OsmGpsMap.html#osm-gps-map-download-maps" title="osm_gps_map_download_maps ()"><code class="function">osm_gps_map_download_maps()</code></a>
</p>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-get-bbox"></a><h3>osm_gps_map_get_bbox ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_get_bbox (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt1</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt2</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pt1</code></em> :</span></p></td>
<td>point to be filled with the top left location</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pt2</code></em> :</span></p></td>
<td>point to be filled with the bottom right location</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-set-center"></a><h3>osm_gps_map_set_center ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_set_center (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">float</span> latitude</code></em>,
<em class="parameter"><code><span class="type">float</span> longitude</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-set-center-and-zoom"></a><h3>osm_gps_map_set_center_and_zoom ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_set_center_and_zoom (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">float</span> latitude</code></em>,
<em class="parameter"><code><span class="type">float</span> longitude</code></em>,
<em class="parameter"><code><span class="type">int</span> zoom</code></em>);</pre>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-set-zoom"></a><h3>osm_gps_map_set_zoom ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> osm_gps_map_set_zoom (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">int</span> zoom</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-zoom-in"></a><h3>osm_gps_map_zoom_in ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> osm_gps_map_zoom_in (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-zoom-out"></a><h3>osm_gps_map_zoom_out ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> osm_gps_map_zoom_out (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-scroll"></a><h3>osm_gps_map_scroll ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_scroll (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">gint</span> dx</code></em>,
<em class="parameter"><code><span class="type">gint</span> dy</code></em>);</pre>
<p>
Scrolls the map by <em class="parameter"><code>dx</code></em>, <em class="parameter"><code>dy</code></em> pixels (positive north, east)
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-get-scale"></a><h3>osm_gps_map_get_scale ()</h3>
<pre class="programlisting"><span class="returnvalue">float</span> osm_gps_map_get_scale (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the scale of the map at the center, in meters/pixel.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMapKey-t"></a><h3>enum OsmGpsMapKey_t</h3>
<pre class="programlisting">typedef enum {
OSM_GPS_MAP_KEY_FULLSCREEN,
OSM_GPS_MAP_KEY_ZOOMIN,
OSM_GPS_MAP_KEY_ZOOMOUT,
OSM_GPS_MAP_KEY_UP,
OSM_GPS_MAP_KEY_DOWN,
OSM_GPS_MAP_KEY_LEFT,
OSM_GPS_MAP_KEY_RIGHT,
OSM_GPS_MAP_KEY_MAX
} OsmGpsMapKey_t;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-set-keyboard-shortcut"></a><h3>osm_gps_map_set_keyboard_shortcut ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_set_keyboard_shortcut (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMap.html#OsmGpsMapKey-t" title="enum OsmGpsMapKey_t"><span class="type">OsmGpsMapKey_t</span></a> key</code></em>,
<em class="parameter"><code><span class="type">guint</span> keyval</code></em>);</pre>
<p>
Associates a keyboard shortcut with the supplied <em class="parameter"><code>keyval</code></em>
(as returned by <span class="type">gdk_keyval_from_name</span> or simiar). The action given in <em class="parameter"><code>key</code></em>
will be triggered when the corresponding <em class="parameter"><code>keyval</code></em> is pressed. By default
no keyboard shortcuts are associated.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>a <a class="link" href="OsmGpsMap.html#OsmGpsMapKey-t" title="enum OsmGpsMapKey_t"><span class="type">OsmGpsMapKey_t</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-get-event-location"></a><h3>osm_gps_map_get_event_location ()</h3>
<pre class="programlisting"><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="returnvalue">OsmGpsMapPoint</span></a> * osm_gps_map_get_event_location (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">GdkEventButton</span> *event</code></em>);</pre>
<p>
A convenience function for getting the geographic location of events,
such as mouse clicks, on the map
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
<td>A <span class="type">GtkEventButton</span> that occured on the map</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The point on the globe corresponding to the click. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-convert-geographic-to-screen"></a><h3>osm_gps_map_convert_geographic_to_screen ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_convert_geographic_to_screen
(<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt</code></em>,
<em class="parameter"><code><span class="type">gint</span> *pixel_x</code></em>,
<em class="parameter"><code><span class="type">gint</span> *pixel_y</code></em>);</pre>
<p>
Convert the given location on the globe to the corresponding
pixel locations on the map.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pt</code></em> :</span></p></td>
<td>location</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixel_x</code></em> :</span></p></td>
<td>pixel location on map, x axis. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixel_y</code></em> :</span></p></td>
<td>pixel location on map, y axis. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-convert-screen-to-geographic"></a><h3>osm_gps_map_convert_screen_to_geographic ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_convert_screen_to_geographic
(<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">gint</span> pixel_x</code></em>,
<em class="parameter"><code><span class="type">gint</span> pixel_y</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapPoint.html" title="OsmGpsMapPoint"><span class="type">OsmGpsMapPoint</span></a> *pt</code></em>);</pre>
<p>
Convert the given pixel location on the map into corresponding
location on the globe
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixel_x</code></em> :</span></p></td>
<td>pixel location on map, x axis</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixel_y</code></em> :</span></p></td>
<td>pixel location on map, y axis</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pt</code></em> :</span></p></td>
<td>location. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-gps-add"></a><h3>osm_gps_map_gps_add ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_gps_add (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">float</span> latitude</code></em>,
<em class="parameter"><code><span class="type">float</span> longitude</code></em>,
<em class="parameter"><code><span class="type">float</span> heading</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>latitude</code></em> :</span></p></td>
<td>degrees</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>longitude</code></em> :</span></p></td>
<td>degrees</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>heading</code></em> :</span></p></td>
<td>degrees or <a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-INVALID:CAPS" title="OSM_GPS_MAP_INVALID"><span class="type">OSM_GPS_MAP_INVALID</span></a> to disable showing heading</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-gps-clear"></a><h3>osm_gps_map_gps_clear ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_gps_clear (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);</pre>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-gps-get-track"></a><h3>osm_gps_map_gps_get_track ()</h3>
<pre class="programlisting"><a class="link" href="OsmGpsMapTrack.html" title="OsmGpsMapTrack"><span class="returnvalue">OsmGpsMapTrack</span></a> * osm_gps_map_gps_get_track (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The <a class="link" href="OsmGpsMapTrack.html" title="OsmGpsMapTrack"><span class="type">OsmGpsMapTrack</span></a> of the internal GPS track,
i.e. that which is modified when calling <a class="link" href="OsmGpsMap.html#osm-gps-map-gps-add" title="osm_gps_map_gps_add ()"><code class="function">osm_gps_map_gps_add()</code></a>. You must
not free this. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-track-add"></a><h3>osm_gps_map_track_add ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_track_add (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapTrack.html" title="OsmGpsMapTrack"><span class="type">OsmGpsMapTrack</span></a> *track</code></em>);</pre>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-track-remove"></a><h3>osm_gps_map_track_remove ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> osm_gps_map_track_remove (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapTrack.html" title="OsmGpsMapTrack"><span class="type">OsmGpsMapTrack</span></a> *track</code></em>);</pre>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-track-remove-all"></a><h3>osm_gps_map_track_remove_all ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_track_remove_all (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);</pre>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-image-add"></a><h3>osm_gps_map_image_add ()</h3>
<pre class="programlisting"><a class="link" href="OsmGpsMapImage.html" title="OsmGpsMapImage"><span class="returnvalue">OsmGpsMapImage</span></a> * osm_gps_map_image_add (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">float</span> latitude</code></em>,
<em class="parameter"><code><span class="type">float</span> longitude</code></em>,
<em class="parameter"><code><span class="type">GdkPixbuf</span> *image</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="OsmGpsMapImage.html" title="OsmGpsMapImage"><span class="type">OsmGpsMapImage</span></a> representing the added pixbuf. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-image-add-with-alignment"></a><h3>osm_gps_map_image_add_with_alignment ()</h3>
<pre class="programlisting"><a class="link" href="OsmGpsMapImage.html" title="OsmGpsMapImage"><span class="returnvalue">OsmGpsMapImage</span></a> * osm_gps_map_image_add_with_alignment
(<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><span class="type">float</span> latitude</code></em>,
<em class="parameter"><code><span class="type">float</span> longitude</code></em>,
<em class="parameter"><code><span class="type">GdkPixbuf</span> *image</code></em>,
<em class="parameter"><code><span class="type">float</span> xalign</code></em>,
<em class="parameter"><code><span class="type">float</span> yalign</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="OsmGpsMapImage.html" title="OsmGpsMapImage"><span class="type">OsmGpsMapImage</span></a> representing the added pixbuf. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-image-remove"></a><h3>osm_gps_map_image_remove ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> osm_gps_map_image_remove (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapImage.html" title="OsmGpsMapImage"><span class="type">OsmGpsMapImage</span></a> *image</code></em>);</pre>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-image-remove-all"></a><h3>osm_gps_map_image_remove_all ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_image_remove_all (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);</pre>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-layer-add"></a><h3>osm_gps_map_layer_add ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_layer_add (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapLayer.html" title="OsmGpsMapLayer"><span class="type">OsmGpsMapLayer</span></a> *layer</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td>
<td>a <a class="link" href="OsmGpsMapLayer.html" title="OsmGpsMapLayer"><span class="type">OsmGpsMapLayer</span></a> object</td>
</tr></tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-layer-remove"></a><h3>osm_gps_map_layer_remove ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> osm_gps_map_layer_remove (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>,
<em class="parameter"><code><a class="link" href="OsmGpsMapLayer.html" title="OsmGpsMapLayer"><span class="type">OsmGpsMapLayer</span></a> *layer</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td>
<td>a <a class="link" href="OsmGpsMapLayer.html" title="OsmGpsMapLayer"><span class="type">OsmGpsMapLayer</span></a> object</td>
</tr></tbody>
</table></div>
<p class="since">Since 0.7.0</p>
</div>
<hr>
<div class="refsect2">
<a name="osm-gps-map-layer-remove-all"></a><h3>osm_gps_map_layer_remove_all ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> osm_gps_map_layer_remove_all (<em class="parameter"><code><a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *map</code></em>);</pre>
<p>
</p>
</div>
</div>
<div class="refsect1">
<a name="OsmGpsMap.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="OsmGpsMap--auto-center"></a><h3>The <code class="literal">"auto-center"</code> property</h3>
<pre class="programlisting"> "auto-center" <span class="type">gboolean</span> : Read / Write / Construct</pre>
<p>map auto center.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--auto-center-threshold"></a><h3>The <code class="literal">"auto-center-threshold"</code> property</h3>
<pre class="programlisting"> "auto-center-threshold" <span class="type">gfloat</span> : Read / Write / Construct</pre>
<p>the amount of the window the gps point must move before auto centering.</p>
<p>Allowed values: [0,1]</p>
<p>Default value: 0.25</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--auto-download"></a><h3>The <code class="literal">"auto-download"</code> property</h3>
<pre class="programlisting"> "auto-download" <span class="type">gboolean</span> : Read / Write / Construct</pre>
<p>map auto download.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--drag-limit"></a><h3>The <code class="literal">"drag-limit"</code> property</h3>
<pre class="programlisting"> "drag-limit" <span class="type">gint</span> : Read / Write / Construct Only</pre>
<p>The number of pixels the user has to move the pointer in order to start dragging.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 10</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--gps-track-highlight-radius"></a><h3>The <code class="literal">"gps-track-highlight-radius"</code> property</h3>
<pre class="programlisting"> "gps-track-highlight-radius" <span class="type">gint</span> : Read / Write / Construct</pre>
<p>The radius of the gps point highlight circle.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 20</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--gps-track-point-radius"></a><h3>The <code class="literal">"gps-track-point-radius"</code> property</h3>
<pre class="programlisting"> "gps-track-point-radius" <span class="type">gint</span> : Read / Write / Construct</pre>
<p>The radius of the gps point inner circle.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 5</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--gps-track-width"></a><h3>The <code class="literal">"gps-track-width"</code> property</h3>
<pre class="programlisting"> "gps-track-width" <span class="type">gfloat</span> : Read / Write / Construct</pre>
<p>The width of the lines drawn for the gps track.</p>
<p>Allowed values: [1,100]</p>
<p>Default value: 4</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--image-format"></a><h3>The <code class="literal">"image-format"</code> property</h3>
<pre class="programlisting"> "image-format" <span class="type">gchar</span>* : Read / Write / Construct Only</pre>
<p>The map source tile repository image format (jpg, png).</p>
<p>Default value: "png"</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--latitude"></a><h3>The <code class="literal">"latitude"</code> property</h3>
<pre class="programlisting"> "latitude" <span class="type">gfloat</span> : Read</pre>
<p>Latitude in degrees.</p>
<p>Allowed values: [-90,90]</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--longitude"></a><h3>The <code class="literal">"longitude"</code> property</h3>
<pre class="programlisting"> "longitude" <span class="type">gfloat</span> : Read</pre>
<p>Longitude in degrees.</p>
<p>Allowed values: [-180,180]</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--map-source"></a><h3>The <code class="literal">"map-source"</code> property</h3>
<pre class="programlisting"> "map-source" <span class="type">gint</span> : Read / Write / Construct</pre>
<p>
A <a class="link" href="OsmGpsMap.html#OsmGpsMapSource-t" title="enum OsmGpsMapSource_t"><span class="type">OsmGpsMapSource_t</span></a> representing the tile repository to use
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
If you do not wish to use the default map tiles (provided by OpenStreeMap)
it is recommened that you set this property at construction, instead
of setting <a class="link" href="OsmGpsMap.html#OsmGpsMap--repo-uri" title='The "repo-uri" property'><span class="type">"repo-uri"</span></a>.
</p>
</div>
<p>
</p>
<p>Allowed values: >= G_MAXULONG</p>
<p>Default value: -1</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--map-x"></a><h3>The <code class="literal">"map-x"</code> property</h3>
<pre class="programlisting"> "map-x" <span class="type">gint</span> : Read / Write / Construct Only</pre>
<p>Initial map x location.</p>
<p>Default value: 890</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--map-y"></a><h3>The <code class="literal">"map-y"</code> property</h3>
<pre class="programlisting"> "map-y" <span class="type">gint</span> : Read / Write / Construct Only</pre>
<p>Initial map y location.</p>
<p>Default value: 515</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--max-zoom"></a><h3>The <code class="literal">"max-zoom"</code> property</h3>
<pre class="programlisting"> "max-zoom" <span class="type">gint</span> : Read / Write / Construct Only</pre>
<p>Maximum zoom level.</p>
<p>Allowed values: [0,20]</p>
<p>Default value: 18</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--min-zoom"></a><h3>The <code class="literal">"min-zoom"</code> property</h3>
<pre class="programlisting"> "min-zoom" <span class="type">gint</span> : Read / Write / Construct Only</pre>
<p>Minimum zoom level.</p>
<p>Allowed values: [0,20]</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--proxy-uri"></a><h3>The <code class="literal">"proxy-uri"</code> property</h3>
<pre class="programlisting"> "proxy-uri" <span class="type">gchar</span>* : Read / Write / Construct Only</pre>
<p>HTTP proxy uri or NULL.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--record-trip-history"></a><h3>The <code class="literal">"record-trip-history"</code> property</h3>
<pre class="programlisting"> "record-trip-history" <span class="type">gboolean</span> : Read / Write / Construct</pre>
<p>should all gps points be recorded in a trip history.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--repo-uri"></a><h3>The <code class="literal">"repo-uri"</code> property</h3>
<pre class="programlisting"> "repo-uri" <span class="type">gchar</span>* : Read / Write / Construct Only</pre>
<p>
A URI string which defines the location and format to fetch tiles
for the map. The string is of the format
"http://tile.openstreetmap.org/#Z/#X/#Y.png". Characters
that begin with # are treated as tokens and replaced according to
the following rules;
</p>
<p>
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
#X - X-tile, slippy map format
</p></li>
<li class="listitem"><p>
#Y - Y-tile, slippy map format, mercator projection
</p></li>
<li class="listitem"><p>
#Z - Zoom level, where min_zoom >= zoom <= max_zoom
</p></li>
<li class="listitem"><p>
#S - Zoom level, where -max_zoom >= (zoom-max_zoom) <= min_zoom
</p></li>
<li class="listitem"><p>
#Q - Quad tree format, set of "qrts"
</p></li>
<li class="listitem"><p>
#Q0 - Quad tree format, set of "0123"
</p></li>
<li class="listitem"><p>
#YS - Not Implemented
</p></li>
<li class="listitem"><p>
#R - Random integer in range [0,4]
</p></li>
</ul></div>
<p>
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
If you do not wish to use the default map tiles (provided by OpenStreeMap)
it is recommened that you use one of the predefined map sources, and thus
you should construct the map by setting <a class="link" href="OsmGpsMap.html#OsmGpsMap--map-source" title='The "map-source" property'><span class="type">"map-source"</span></a> and not
<a class="link" href="OsmGpsMap.html#OsmGpsMap--repo-uri" title='The "repo-uri" property'><span class="type">"repo-uri"</span></a>. The <a class="link" href="OsmGpsMap.html#OsmGpsMap--repo-uri" title='The "repo-uri" property'><span class="type">"repo-uri"</span></a> property is primarily
designed for applications that wish complete control of tile repository
management, or wish to use <a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> with a tile repository it does not
explicitly support.
</p>
</div>
<p>
</p>
<p>Default value: "http://tile.openstreetmap.org/#Z/#X/#Y.png"</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--show-gps-point"></a><h3>The <code class="literal">"show-gps-point"</code> property</h3>
<pre class="programlisting"> "show-gps-point" <span class="type">gboolean</span> : Read / Write / Construct</pre>
<p>
Controls whether the current gps point is shown on the map. Note that
for derived classes that implement the draw_gps_point vfunc, if this
property is <code class="literal">FALSE</code>
</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--show-trip-history"></a><h3>The <code class="literal">"show-trip-history"</code> property</h3>
<pre class="programlisting"> "show-trip-history" <span class="type">gboolean</span> : Read / Write / Construct</pre>
<p>should the recorded trip history be shown on the map.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--tile-cache"></a><h3>The <code class="literal">"tile-cache"</code> property</h3>
<pre class="programlisting"> "tile-cache" <span class="type">gchar</span>* : Read / Write / Construct</pre>
<p>
Either a full path or one of the special format URIs
<a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-DISABLED:CAPS" title="OSM_GPS_MAP_CACHE_DISABLED"><span class="type">OSM_GPS_MAP_CACHE_DISABLED</span></a>, <a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-AUTO:CAPS" title="OSM_GPS_MAP_CACHE_AUTO"><span class="type">OSM_GPS_MAP_CACHE_AUTO</span></a>,
<a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-FRIENDLY:CAPS" title="OSM_GPS_MAP_CACHE_FRIENDLY"><span class="type">OSM_GPS_MAP_CACHE_FRIENDLY</span></a>. Also see <a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-cache-base" title='The "tile-cache-base" property'><span class="type">"tile-cache-base"</span></a> for a
full understanding.
</p>
<p>
<a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-DISABLED:CAPS" title="OSM_GPS_MAP_CACHE_DISABLED"><span class="type">OSM_GPS_MAP_CACHE_DISABLED</span></a> disables the on disk tile cache (so all tiles
are fetched from the network. <a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-AUTO:CAPS" title="OSM_GPS_MAP_CACHE_AUTO"><span class="type">OSM_GPS_MAP_CACHE_AUTO</span></a> causes the tile
cache to be /tile-cache-base/md5(repo-uri), where md5 is the md5sum
of <a class="link" href="OsmGpsMap.html#OsmGpsMap--repo-uri" title='The "repo-uri" property'><span class="type">"repo-uri"</span></a>. <a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-FRIENDLY:CAPS" title="OSM_GPS_MAP_CACHE_FRIENDLY"><span class="type">OSM_GPS_MAP_CACHE_FRIENDLY</span></a>
causes the tile cache to be /tile-cache-base/friendlyname(repo-uri).
</p>
<p>
Any other string is interpreted as a local path, i.e. /path/to/cache
</p>
<p>Default value: "auto://"</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--tile-cache-base"></a><h3>The <code class="literal">"tile-cache-base"</code> property</h3>
<pre class="programlisting"> "tile-cache-base" <span class="type">gchar</span>* : Read / Write / Construct Only</pre>
<p>
The base directory of the tile cache when you have constructed
the map with <a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-cache" title='The "tile-cache" property'><span class="type">"tile-cache"</span></a> set to <a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-AUTO:CAPS" title="OSM_GPS_MAP_CACHE_AUTO"><span class="type">OSM_GPS_MAP_CACHE_AUTO</span></a> or
<a class="link" href="OsmGpsMap.html#OSM-GPS-MAP-CACHE-FRIENDLY:CAPS" title="OSM_GPS_MAP_CACHE_FRIENDLY"><span class="type">OSM_GPS_MAP_CACHE_FRIENDLY</span></a>
</p>
<p>
The string is interpreted as a local path, i.e. /path/to/cache. If NULL
is supplied, map tiles are cached starting in the users cache directory,
(as outlined in the
<a class="ulink" href="http://www.freedesktop.org/wiki/Specifications/basedir-spec" target="_top">
<em class="citetitle">XDG Base Directory Specification</em></a>). To get the
base directory where map tiles will be cached call
<a class="link" href="OsmGpsMap.html#osm-gps-map-get-default-cache-directory" title="osm_gps_map_get_default_cache_directory ()"><code class="function">osm_gps_map_get_default_cache_directory()</code></a>
</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--tile-cache-is-full-path"></a><h3>The <code class="literal">"tile-cache-is-full-path"</code> property</h3>
<pre class="programlisting"> "tile-cache-is-full-path" <span class="type">gboolean</span> : Read / Write</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">OsmGpsMap:tile-cache-is-full-path</code> is deprecated and should not be used in newly-written code. Use <a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-cache" title='The "tile-cache" property'><span class="type">"tile-cache"</span></a> and <a class="link" href="OsmGpsMap.html#OsmGpsMap--tile-cache-base" title='The "tile-cache-base" property'><span class="type">"tile-cache-base"</span></a> instead</p>
</div>
<p></p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--tile-zoom-offset"></a><h3>The <code class="literal">"tile-zoom-offset"</code> property</h3>
<pre class="programlisting"> "tile-zoom-offset" <span class="type">gint</span> : Read / Write / Construct Only</pre>
<p>Number of zoom-levels to upsample tiles.</p>
<p>Allowed values: [0,10]</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--tiles-queued"></a><h3>The <code class="literal">"tiles-queued"</code> property</h3>
<pre class="programlisting"> "tiles-queued" <span class="type">gint</span> : Read</pre>
<p>
The number of tiles currently waiting to download. Connect to
::notify::tiles-queued if you want to be informed when this changes
</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="OsmGpsMap--zoom"></a><h3>The <code class="literal">"zoom"</code> property</h3>
<pre class="programlisting"> "zoom" <span class="type">gint</span> : Read / Write / Construct Only</pre>
<p>
The map zoom level. Connect to ::notify::zoom if you want to be informed
when this changes.
</p>
<p>Allowed values: [0,20]</p>
<p>Default value: 3</p>
</div>
</div>
<div class="refsect1">
<a name="OsmGpsMap.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="OsmGpsMap-changed"></a><h3>The <code class="literal">"changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="OsmGpsMap.html" title="OsmGpsMap"><span class="type">OsmGpsMap</span></a> *arg0,
<span class="type">gpointer</span> user_data) : <code class="literal">Run First</code></pre>
<p>
The <a class="link" href="OsmGpsMap.html#OsmGpsMap-changed" title='The "changed" signal'><span class="type">"changed"</span></a> signal is emitted any time the map zoom or map center
is chaged (such as by dragging or zooming).
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
If you are only interested in the map zoom, then you can simply connect
to ::notify::zoom
</p>
</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|