-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.rkt
80 lines (74 loc) · 2.6 KB
/
main.rkt
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
;; SPDX-License-Identifier: LGPL-3.0-or-later
;; main.rkt -- main file for the map-widget package, exports the widgets
;;
;; This file is part of map-widget -- A Racket GUI Widget to display maps based on OpenStreetMap tiles
;; Copyright (c) 2020, 2023 Alex Harsányi <[email protected]>
;;
;; This program is free software: you can redistribute it and/or modify it
;; under the terms of the GNU Lesser General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or (at your
;; option) any later version.
;;
;; 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 Lesser General Public
;; License for more details.
;;
;; You should have received a copy of the GNU Lesser General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
#lang racket/base
(require "private/map-widget.rkt"
"private/map-snip.rkt"
"private/utilities.rkt"
"private/map-util.rkt"
"private/tiles.rkt"
"private/layers.rkt")
(provide map-widget%
map-snip%
map-widget-logger
min-zoom-level
max-zoom-level
get-tile-providers
current-tile-provider
set-current-tile-provider
allow-tile-download
set-allow-tile-download
vacuum-tile-cache-database
shutdown-map-tile-workers
layer<%>
lines-layer%
markers-layer%
points-layer%
point-cloud-layer%
current-location-layer%
lines-layer
line-layer
points-layer
markers-layer
point-cloud-layer
current-location-layer)
;; Notice
;; To install (from within the package directory):
;; $ raco pkg install
;; To install (once uploaded to pkgs.racket-lang.org):
;; $ raco pkg install <<name>>
;; To uninstall:
;; $ raco pkg remove <<name>>
;; To view documentation:
;; $ raco docs <<name>>
;;
;; To rebuild package
;;
;; $ raco setup --no-pkg-deps map-widget
;; $ raco setup --doc-index --no-pkg-deps map-widget
;;
;; For your convenience, we have included a LICENSE.txt file, which links to
;; the GNU Lesser General Public License.
;; If you would prefer to use a different license, replace LICENSE.txt with the
;; desired license.
;;
;; Some users like to add a `private/` directory, place auxiliary files there,
;; and require them in `main.rkt`.
;;
;; See the current version of the racket style guide here:
;; http://docs.racket-lang.org/style/index.html